post-commit script to set keywords/prop-set hit and miss
From: Jennifer Kesterson <jennifer_at_mail2.jpl.nasa.gov>
Date: 2004-12-02 01:51:43 CET
We wrote a post-commit hook script to set keywords and EOL styles in the
-------------- post-commit script begins here ----------------
echo on
REM Tweek contents of a rev to set keywords and line styles
REM Build repository accessors and rev
rmdir /S /Q %CACHE%
REM Look for directories that have changed files in them
date /T >> %log%
echo Subversion provided %REPOPATH%, %REV% as args to post-commit >>
REM Make the cache and cd into it
echo svn co -N %REPOURL%/%%a svntmp >> %log%
echo svn propset -R svn:keywords "URL Rev Date" svntmp >> %log%
REM - is this of any use ? svn update svntmp
echo svn ci svntmp -m "Auto Keyword Set via hook script" >>%log%
rmdir /S /Q svntmp
REM rmdir /S /Q %CACHE%
:onexit
|
This is an archived mail posted to the Subversion Users mailing list.
This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.