Question

To my understanding it is only necessary to add files you work with once or regularly into the trunk. It seems wasteful and bulky to add files that never get touched to the trunk. Is this logic correct? And then if I eventually want to touch one of those files I can easily add it later on?

Was it helpful?

Solution

The rule of thumb is: anyone must be able to start from scratch, with a brand new computer, install the various development tools (compiler, IDE, database, etc.), checkout the trunk, and build the latest version of the project. All your sources go in the repository, except the sources that are automatically generated from other artefacts.

OTHER TIPS

Best practice is to store a complete project your preferred source control system. You got i right when a complete new team member can checkout and start working without a single extra step of setup. To accomplish that you need to store ALL source code and all dependent libraries etc.

You want to put into Subversion everything that defines you application. This way you will be able to build your project from what is in version control. This way you will be able to go back in time to see how your application was configured at any point in the past, this will save your butt someday.

Don't worry about storage. Subversion is very efficient. When you do a copy ("branch") in Subversion it only copies the directory and still points to the original files until they are changed. If they do never change then you will only have one copy.

Disk is cheap, your time and the time is expensive. Make it as easy as possible to build your project and to time travel. You will not regret it.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top