Archive for the 'agile' Category



27
Jul
06

Version control in Agile development team

Today’s customers and vendors want Agile development practices for every  software project. Wish this could be applied as effectively to non-software projects as well. :)  Version control is an important activity of every software project and the success of a project largely depends on effectiveness of the version control process used during the project execution.Though it depends on the maturity and sincerity of the developers too but a successful version control is almost always backed by a strong configuration management “process”.

Here, i will explain the very general approach / process that applies to most of the projects. A tweak here n there is usually done to suit the specific environment. CVS and SVN are the tools of choice for agile development projects. I will not talk about the installation and setup for them. I will assume that its is setup and all developers have the code checked out into their local repositories. Following steps need to be followed religiously by all persons on daily basis to maintain a healthy version control system.

  1. Do synchronization as the first task everyday morning. If the synchronization results in any “incoming” files, get the files into local machine. This ensures that you start with “latest” copies.
  2. Work with the files you are interested.
  3. Once you have finished working on a file, do clear any coding standard violations. Compile it and clear any compilation issues. Clear any compiler warnings.
  4. Now you are ready to check-in code into CVS. do synchronization.
  5. If the synchronization results in incoming files update your system with them. For conflicts, resolve the conflict thru the ‘manual’ merge process.
  6. Compile the code and ensure it compiles clean.
  7. Do synchronize again.
  8. In most of the cases you should now only have outgoing files. In such a case commit those files into CVS with appropriate comments. Otherwise repeat the steps 5 to 8.

General Guidelines

  1. Avoid using the “Override and Commit” and “Override and Update” commands unless you are an experienced developer.
  2. Do synchronization multiple times in a day. This will keep you closer to latest code and reduce the need for code merge.
  3. Do not keep modified code in your local machine. If the code is in a state to compile clean, try to commit it to CVS.
  4. You should make it a habit to check-in all your code/docs into CVS before you leave office everyday.
  5. Your code must compile clean before doing any check-in.
  6. Check-in comments – comments should explain why a change was done. What changes were done can be found from the history, so it needs no mention.

The above process is manufactured out of my development experience. If you have faced any situation which you think applies to version control process in general, please share. 




What You Said

Laxman on Passport for Baby in Bang…
nishi on Bangalore Property
Nilanchal on Bangalore Property
Nilanchal on Bangalore Property
suraj on Bangalore Property
Joe on Bangalore Property
Nilanchal on Bangalore Property
tgvindia on Bangalore Property
Swetha Viswanathan on Bangalore Property
Mr. Charm on Bangalore Property

History

Blog Stats

  • 129,690 views

Bookmarks