

- #POST REVPROP CHANGE VISUALSVN HOOKS 设置 HOW TO#
- #POST REVPROP CHANGE VISUALSVN HOOKS 设置 INSTALL#
- #POST REVPROP CHANGE VISUALSVN HOOKS 设置 CODE#
- #POST REVPROP CHANGE VISUALSVN HOOKS 设置 WINDOWS#
After about a minute the launcher told me that the console had started and we were up and running. Our Internet access is via a proxy and I suspected that it might be trying to call home and failing, so I configured the proxy (by setting up a http_proxy environment variable) and restarted the Edge service. After a few minutes of waiting… I got impatient.
#POST REVPROP CHANGE VISUALSVN HOOKS 设置 INSTALL#
After the install finished I was presented with a launcher web page telling me to wait while the console was starting. The install went reasonably smoothly, although I was told that a Java 6 runtime was required, which the installer offered to get for me, but I ended up having to install it myself.
#POST REVPROP CHANGE VISUALSVN HOOKS 设置 HOW TO#
I was particularly interested in their Web-based administration, as it would help if more people in the team knew how to feed and water the SVN server and didn’t have to Remote Desktop onto the box to do so.
#POST REVPROP CHANGE VISUALSVN HOOKS 设置 WINDOWS#
It’s available for multiple platforms and a Windows MSI is supplied for easy installation.

I regularly get email from CollabNet about their products so I though I would give CollabNet Subversion Edge a try.Įdge is really three things in one – a ‘certified’ SVN stack, Apache and ViewCV. Buying anything in the company tends to rather tricky, so we’ve happily been using the Standard (and free) Edition but it was a little annoying not having the Remote Administration feature and therefore having to Remote Desktop onto the server any time stuff needed doing. However, some functionality is only available in the Enterprise Edition (access logging, remote admin, integrated authentication). There’s a management Snap in, nice integration with Active Directory with fine-grained access control and it generally keeps all the settings and configuration accessible in a way that anyone used to managing a Windows box can cope with. Being almost exclusively a Windows shop, VisualSVN fitted very well as it does Subversion the Windows way. As we are just about to start a major rewrite of our software, I’m taking the opportunity to review our toolset.
#POST REVPROP CHANGE VISUALSVN HOOKS 设置 CODE#
My team has been using VisualSVN Server since I migrated our source code from Microsoft SourceSafe (yuck) over a year ago.

REM Only allow log messages or author to be changed.Įcho “Property ‘%4’ cannot be changed > &2 You also need a pre-revprop-change script to make sure that changing of properties is allowed. Svn propset –revprop -r %REV% svn:author %USERNAME% %REPOS_URL% I ended up using a useful feature of DOS to replace the slashes. After some experimenting I found that the slashes had to be replaced with forward slashes and an additional slash needed putting after the file. However, this gave an svn: Illegal repository URL error. Svn propset –revprop -r %REV% svn:author %USERNAME% file://%REPOS% I tried changing the URL of the Repo to be file:// so that the path was actually a URL (at least in a form that Internet Explorer understands: Svnnotify –repos-path %REPOS% –revision %REV% –to %EMAILADDRESSES% –from %USERNAME% –smtp 127.0.0.1 –subject-prefix “SVN – Rev: %%d – ” –handler HTML::ColorDiff –with-diff –max-diff-length 8192

REM Send out a email to development team to notify them of the commit Svn propset –revprop -r %REV% svn:author %USERNAME% %REPOS% REM Lookup the email address of the authorįOR /F “tokens=*” %%A IN (d:\emailmaps\%AUTHOR%) DO set USERNAME=”%%A” Set PATH=%PATH% C:\Program Files\VisualSVN Server\bin\ C:\Perl\site\bin C:\Perl\bin įOR /F “tokens=*” %%i in (‘”svnlook.exe author -r “%REV%” “%REPOS%””‘) do SET AUTHOR=%%i My original hook script looked like this: and svn propset kept thinking that this was a path to a working copy of the repository rather than the repository iteself. The hook script provides a path to the repository being used, but this was in the form D:\Respositories\…. I knew that this could be done from a Post Commit Hook using the svn propset command, but I had real problems getting it to work on Windows. I recently wanted to change the Author that appears in SVN commit logs from the account name of the commiter to their email address.
