free hit counter

Tuesday, November 29, 2005

subversion: traditional version control locks

So we want to disallow concurrent editing on binary files like word docs, PDFs, and powerpoint slides. To do this you need to add the following to the server's windows registry (can just cut/paste to a file named subversion.reg and double click to merge it in), then reboot your client machines (and for good measure restart apache on the server)


Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Tigris.org\Subversion\Config]

[HKEY_LOCAL_MACHINE\SOFTWARE\Tigris.org\Subversion\Config\auto-props]
"*.doc"="svn:needs-lock=yes;svn:mime-type=application/msword"
"*.pdf"="svn:needs-lock=yes;svn:mime-type=application/pdf"
"*.png"="svn:mime-type=image/png"
"*.jpg"="svn:mime-type=image/jpeg"
"*.vsd"="svn:needs-lock=true"
"*.ppt"="svn:needs-lock=true;svn:mime-type=application/mspowerpoint"


[HKEY_LOCAL_MACHINE\SOFTWARE\Tigris.org\Subversion\Config\Miscellany]
"enable-auto-props"="yes"

Labels:

0 Comments:

Post a Comment

<< Home