Tuesday, July 24, 2007

Display Tortoise CVS Commands Inside Visual Sudio 2005

Currently, there is no integration between VS 2005 and Tortoise CVS. Gary Bodsworth posted a blog in which he created a custom settings file to display Tortoise SVN commands in VS 2005. I've downloaded his settings file and updated to use CVS commands. The result is a new settings file you can import into Studio that works with Tortoise CVS.



First save this following settings file to your local drive. http://lawlessweb.googlepages.com/CVSToolbarsAndMenus.vssettings


Then, open Studio and select Tools Import and Export Settings

Next, save your current settings and import the attached settings.

You should now see a new set of buttons in the top right corner of Studio as follows:













From left to right, the buttons have the following functionality.

Commit - Commits changes back to CVS.
Update - Tells CVS you are updating the file.
Diff - Shows difference in local and last version.
Modifications - Shows modification history
Revert - Replaces local copy with last version.

Tortoise CVS offers a number of other source management commands. You can add additional commands to your toolbar by modifying the settings file as I have done in order to customize it to your liking.

The following link is a great reference source for CVS command line arguments:
http://ximbiot.com/cvs/manual/cvs-1.11.22/cvs_16.html#SEC123