






SPEW Subversion Setup: Windows
Windows Subversion Setup for SPEW
Here's how you set up the Subversion command-line client to work with svn+ssh URLs. There's also a nice Windows GUI / Explorer Shell add-on for Subversion (TortoiseSVN) if you wanna try that instead. Consider that, like, unsupported, though.
One-time setup, per machine
1. Install the Subversion command-line client for Windows from http://subversion.tigris.org/.
You probably want svn-1.3.0-setup.exe
2. Add a SVN_EDITOR environment variable:
Go to the Control Panel, and open the System dialog (switch to Classic View if necessary).
(You can also get to the System dialog by right-clicking on My Computer and selecting Properties.)
Go to the Advanced tab, and click "Environment Variables" at the bottom.
Set the text editor for subversion commitment notes to notepad.exe, or whatever:
Variable name: SVN_EDITOR
Variable value: notepad
(You can make it a User or System variable, doesn't matter.)
Save it somewhere in your path. The installer above probably added C:\Program Files\Subversion\bin to your path,
so I recommend saving it there.
* ssh.exe is actually TortoisePlink.exe from TortoiseCVS/TortoiseSVN, if you're wondering where I got the file.
Subversion will try to execute "ssh.exe" by default, so I renamed the file.
You probably wanna save it somewhere in your path, say C:\Program Files\Subversion\bin as well.
5. Launch a command prompt. In the command prompt, run Pageant and tell it to use your private key:
> pageant G:\MyDocs\spewKey.ppk
6. In the command prompt, change directory to wherever you want to do your development and checkout the test repository.
Test Repository URL: svn+ssh://sidi@aragorn.cc.gatech.edu/testrepo
Real Repository URL: svn+ssh://sidi@aragorn.cc.gatech.edu/spew
Yes, sidi@aragorn (or @helsinki, @salo, or whatever), regardless of your CoC username. We're all using my account to avoid
several permissions issues. However, we each have our own keys, so the svn logs will know who committed what. "svn blame" will
still be helpful. ;-)
For example:
> cd /D "G:\MyDocs\cs4911"
> svn checkout svn+ssh://sidi@aragorn.cc.gatech.edu/testrepo trepo
A trepo\projectA
A trepo\projectA\trunk
A trepo\projectA\trunk\bye.txt
A trepo\projectA\trunk\hi.txt
A trepo\projectA\branches
A trepo\projectA\tags
A trepo\projectB
A trepo\projectB\trunk
A trepo\projectB\branches
A trepo\projectB\tags
Checked out revision 3.
(That last argument (trepo) is optional.)
Every time you reboot or so
1. Launch a command prompt. In the command prompt, run Pageant and tell it to use your private key:
> pageant G:\MyDocs\spewKey.ppk
2. Change directory and do stuff..
For example:
> cd /D "G:\MyDocs\cs4911\trepo"
> svn log
------------------------------------------------------------------------
r1 | chris | 2006-01-18 20:22:07 -0500 (Wed, 18 Jan 2006) | 1 line
Initial repository layout
------------------------------------------------------------------------
> svn update
A projectA\trunk\foo.txt
Updated to revision 4.
> notepad bar.txt
> svn add bar.txt
A bar.txt
> svn commit
Adding bar.txt
Transmitting file data .
Committed revision 5.
> svn update
At revision 5.
Return to the home page of Team SPEW
Link to this Page