I”ve been using Subversion for a year now. I”m really glad i”ve started using it and i really enjoy its working model (which is quite different from VSS default working model). Now, a few days ago, i decided to format my PC, which means that i had to install everything again. Now, the problem is how to reuse the old repository since i hadn”t made any backup (and as always, i didn”t read the docs).
Lucky for me, it was really simple since Subversion 1.4 + will already let you have a svn service for free (no need to install aditional updates, like happened in the old versions of the product – if this is not news for you, then you”ve got me! after installing it for the first time and having it work without any problems, i just left it there running without running any updates whatsoever). After installing, the only thing i had to do was create a service from the command line by using the sc utility. Now, this is where the fun begins.
As always,google was a good friend and returned this with detailed info on the command i was supposed to run:
create svn.local binpath= “”c:program filessubversionbinsvnserve.exe” –service –root D:svnrepo” displayname= “Subversion Repository” depend= Tcpip
simple,right? well, not quite…i didn”t noticed the blanks after binpath, depend and displayname and that was enough for the service not being created. if you forget those spaces, you”ll just see it display the help, withouth any util info on what”s going on. so, the next time you need to create a new entry on the services list, don”t forget those nasting spaces…