Skip Navigation Links

Eric Bergman-Terrell's Blog

Previous Blog Entry Essential Tools for Source Code Control

January 27, 2010

For years I used Microsoft SourceSafe to manage my personal source code. But when I converted my development machine to Windows 7 I started experiencing issues with SourceSafe.

I've replaced SourceSafe with Subversion and I'm very happy with it. I use Visual SVN Server Standard Edition as my Subversion server on my Windows 7 development machine. I use the TortoiseSVN svn client on all of my Windows development machines.

For my Eclipse development I probably should be using the integrated svn client, but I am not, only because TortoiseSVN works so well. Ditto for my Visual Studio work, integrated SVN clients exist, but I'm sticking with TortoiseSVN for now.

When I backup my SVN repository, I backup my svn repository folder, as well as a folder containing the latest versions of all my source code. Here is a fragment of my PowerShell backup script that extracts the source code to a folder. You will need to replace {PROTOCOL}, {MACHINE NAME}, {REPOSITORY PATH} {USERNAME}, and {PASSWORD} with values appropriate to your environment. My PowerShell script uses the CollabNet Subversion Command-Line Client (for Windows).

...
function CopySourceCodeToTempFolder($SourceCodeFolder, $LogFile)
{
	Write-Output "Copying source code to temporary folder"
	Write-Output ""

	Write-Output "Getting source code from Subversion"
	Write-Output ""

	& 'C:\Program Files (x86)\CollabNet Subversion Client\svn.exe' export {PROTOCOL}://{MACHINE NAME}{REPOSITORY PATH} $SourceCodeFolder --username {USERNAME} --password {PASSWORD}

	Write-Output ""
}
...

When I'm at work, I often need to find snippets of code. Consequently I import all of my source code into a Vault 3 file stored in my DropBox folder. That way I can find a useful fragment of code in a matter of seconds. I use Vault 3's "File / Import / Import Text Files and/or Photos from Disk Folder" menu to create a Vault 3 file of my entire personal source code repository. Vault 3 uses strong encryption, so I don't need to worry about the fact that there are passwords in some of the configuration files that I import to Vault 3.

Using Vault 3 to store source code snippets
Keywords: source code control, svn, subversion, Visual SVN Server, Tortoise SVN, SourceSafe, eclipse, Visual Studio, PowerShell, Vault 3, SVN Scripting, Windows 7, DropBox

Previous Blog Entry Use DropBox to Synchronize your Vault 3 Files (and Other Files Too)

Reader Comments

Comment on this Blog Post

Recent Posts

Posting Calendar

Title Date
Essential Tools for Source Code Control January 27, 2010
Use DropBox to Synchronize your Vault 3 Files (and Other Files Too) January 25, 2010
FileZilla Versus the Windows 7 FTP Client January 03, 2010
The Global Busy Signal Alliance November 30, 2009
Vault 3 Version 0.21 Released November 06, 2009
Vault 3 on Ubuntu 9.10 "Karmic Koala" October 31, 2009
Running Microsoft Visual SourceSafe 6.0d on Windows 7 August 12, 2009
<January 2010
SunMonTueWedThuFriSat
272829303112
3456789
10111213141516
17181920212223
24252627282930
31123456

Blog Archive

Home Page   Vault 3   Shareware   C# .NET Tips   Download C# .NET Source Code   Browse C# .NET Source Code   C# .NET Open Source   On-Line Utilities   Blog   Contact