[VB2008+Mercurial] What files can I leave out?

Getting started with source control

Page 1 of 1

2 Replies - 773 Views - Last Post: 23 March 2010 - 08:11 AM Rate Topic: -----

#1 littlebigman  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 38
  • Joined: 09-February 10

[VB2008+Mercurial] What files can I leave out?

Posted 19 March 2010 - 04:15 AM

Hello

I'm learning VB2008 using the Express edition IDE, and would like to start using the Mercurial SCM. I have a couple of questions:

1. Should I use a single repository for all my tiny projects under C:\VB.Net\, or should I create a repository into each project (eg. C:\VB.Net\Project1\, C:\VB.Net\Project2\, etc.)? If using only a single repository, will Mercurial filter changes so I can see only files belonging to a given project?

2. What files/directories can I leave out of Mercury? For instance, here's what VB2008 Express created for a single-form project:
C:\VB.Net\Project1
<DIR>          WindowsApplication1

C:\VB.Net\Project1\WindowsApplication1
<DIR>		WindowsApplication1
WindowsApplication1.sln

C:\VB.Net\Project1\WindowsApplication1\WindowsApplication1
<DIR>          bin
<DIR>          My Project
<DIR>          obj
Form1.Designer.vb
Form1.resx
Form1.vb
WindowsApplication1.vbproj
WindowsApplication1.vbproj.user

C:\VB.Net\Project1\WindowsApplication1\WindowsApplication1\My Project
Application.Designer.vb
Application.myapp
AssemblyInfo.vb
Resources.Designer.vb
Resources.resx
Settings.Designer.vb
Settings.settings



3. Is it possible to avoid the empty \WindowsApplication1\ at the root of a project, so that I don't have to cd into it to find the first actual file (WindowsApplication1.sln)?

Thank you for any help.

Is This A Good Question/Topic? 0
  • +

Replies To: [VB2008+Mercurial] What files can I leave out?

#2 muballitmitte  Icon User is offline

  • D.I.C Regular
  • member icon

Reputation: 174
  • View blog
  • Posts: 470
  • Joined: 05-November 08

Re: [VB2008+Mercurial] What files can I leave out?

Posted 19 March 2010 - 05:50 AM

Preferably you should have one repository per project. This way you can best control every version of the source code -plus it`s esier to check out, commit and generally manage code for a specific project in this way. Normally you should leave out of the versioning system user-specific files like: everything that ends with ".user", .suo files, .ncb files, everything that the compiler generates and so on.

This post has been edited by muballitmitte: 19 March 2010 - 05:53 AM

Was This Post Helpful? 0
  • +
  • -

#3 littlebigman  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 38
  • Joined: 09-February 10

Re: [VB2008+Mercurial] What files can I leave out?

Posted 23 March 2010 - 08:11 AM

Thanks for the tip.
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1