Running a Subversion Server on Windows @ r1
This needs to be in more places on the internet. I'm sick of googling it every time I can't remember the stupid command.
- Download the zipped up version of Subversion, and put it somewhere, say,
c:\lib\svn
- Create your subversion repository:
c:\lib\svn\bin\svnadmin create c:\path\to\repo
-
Type this, and the equals sign spacing is extremely intentional:
dos
sc create subversion binpath= "c:\lib\svn\bin\svnserve.exe --service --root c:\path\to\repo" start= auto depend= Tcpip displayname= "Subversion Server"
- Type this:
c:\lib\svn\bin\svn info svn://localhost
- Profit.
If you see this:
plaintext
Path: localhost
URL: svn://localhost
Repository Root: svn://localhost
Repository UUID: b2faa4b0-80f5-4142-907f-0accf209a4de
Revision: 0
Node Kind: directory
Last Changed Rev: 0
Last Changed Date: 2009-06-16 14:01:41 -0700 (Tue, 16 Jun 2009)
a winner is you.
If you suck and screwed it up, delete the service by running
sc delete subversion
.