WaZaRWiki : SVNTips

GaelReignier :: Categories :: PageIndex :: RecentChanges :: RecentlyCommented :: Login/Register :: Hosted by: eNiX

Revision [265]

This is an old revision of SVNTips made by GaelReignier on 2009-01-06 12:27:49.
ITTips

Backup all your SVN repositories

for i in `ls -1 /data/svn/`;do svnadmin dump /data/svn/$i|bzip2 >/root/svndump/svn.$i.dump.bz2; done;


To send an email for each commit


Go into your repository folder into your svn server then:

cd /data/svn/repository/hooks # replace the path by your actual path on your server
mv post-commit.tmpl post-commit
vim post-commit


Update the file in the hook folder as followed:
REPOS="$1"
REV="$2"
AUTHOR=`/usr/bin/svnlook author /data/svn/version2`
RECIP=svn.recipients@xyz.com
FROM=$AUTHOR@svn.xyz.com
SUBJ="SVN COMMIT $REPOS"

/usr/bin/svnnotify -p"$REPOS" -r"$REV" -t$RECIP -f$FROM -Dsvn.xyz.com -P"$SUBJ" -C -d --handler HTML::ColorDiff

There are no comments on this page. [Add comment]

Valid XHTML 1.0 Transitional :: Valid CSS :: Powered by WikkaWiki
Page was generated in 0.2391 seconds