Svn

From campisano.org
Jump to: navigation, search

Windows

SVN client

Tortoise SVN client from tortoisesvn.net


KDiff integration

  • Config example:
C:\Program Files\KDiff3\kdiff3.exe %base %mine  --L1 %bname --L2 %yname
C:\Program Files\KDiff3\kdiff3.exe --qall %mine %base %theirs -o %merged --L1 %yname --L2 %bname --L3 %tname


SVN server

From tortoisesvn.net


  • Downloaded version:
http://downloads.sourceforge.net/project/win32svn/1.7.1/Setup-Subversion-1.7.1.msi
  • Install path:
E:\srv\local\subversion


  • Windows service:

Note that you would have to give the Local Service account appropriate rights to both Subversion and your repositories, as well as any applications which are used by hook scripts. The built-in group for this is called "LOCAL SERVICE".

sc.exe create SVNServe binpath= "E:\srv\local\subversion\bin\svnserve.exe --service --root E:\srv\repository\subversion" depend= tcpip start= auto obj= "NT AUTHORITY\LocalService"
sc.exe start SVNServe


  • Create a repository (svnserve need write permissions)
mkdir "E:\srv\repository\subversion"
"E:\srv\local\subversion\bin\svnadmin.exe" create "E:\srv\repository\subversion\MY_REPO"
runas /user:Administrator cmd
cacls E:\srv\repository\subversion /E /T /G "NT AUTHORITY\LocalService":F


Configure the repository authentication

  • E:\srv\repository\subversion\MY_REPO\conf\svnserve.conf
[general]
anon-access = none
auth-access = write
password-db = passwd
authz-db = authz

realm = MY_REPO Repository
force-username-case = none


  • E:\srv\repository\subversion\MY_REPO\conf\passwd
[users]
USER_1 = 123456
USER_2 = 123456


  • E:\srv\repository\subversion\MY_REPO\conf\authz
[groups]
svnadmin = USER_1
svnuser = USER_1,USER_2

[/]
@svnadmin = rw

[/shared]
@svnadmin = rw
@svnuser = r

[/*]
@svnadmin = rw

[/USER_1]
USER_1 = rw

[/USER_2]
USER_2 = rw