Advertisement
effemmeffe

post-commit.bat

Jan 24th, 2013
301
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.49 KB | None | 0 0
  1. set REPOS=%1
  2. set REV=%2
  3. set PYTHONPATH=c:\csvn\lib\svn-python
  4.  
  5. :: send an email
  6. python "C:\csvn\bin\mailer.py" commit "%REPOS%" "%REV%" C:\csvn\data\conf\mailer.conf
  7.  
  8.  
  9. :: get the author
  10. for /f "delims=" %%a in ('svn propget svn:author --revprop -r %REV% http://my_server_address') do @set myAuthor=%%a
  11.  
  12. :: change author
  13. if "%myAuthor%"=="me@myself.com" do @set myAuthor=you@myself.com
  14.  
  15. :: set svn property
  16. svn propset --revprop -r %REV% svn:author %myAuthor% http://my_server_address
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement