On 04.07.2005, at 15:11, Andrew Cowie wrote:
As for Darcs integration, for a while I tried manually importing, and
then tailor.py importing, changes from darcs into svn. Neither was
terribly agreeable. I've more or less given up on that for the moment.

I use the following cron'ed script successfully with Trac:

[EMAIL PROTECTED]:~/tmp$ cat update-repo
#!/bin/bash

~/tmp/tailor.py -s darcs -R ~/repo -m /obby -t svn ~/tmp/obby/
~/tmp/tailor.py -s darcs -R ~gobby/repo -m /gobby -t svn ~/tmp/gobby/
~/tmp/tailor.py -s darcs -R ~net6/repo -m /net6 -t svn ~/tmp/net6/
(cd ~/svn/db; chmod g+w *)

And the corresponding SVN hook script to automatically close tickets:

[EMAIL PROTECTED]:~/svn/hooks$ cat post-commit
#!/bin/sh

REPOS="$1"
REV="$2"

LOG=`/usr/bin/svnlook log -r $REV $REPOS`
AUTHOR=`/usr/bin/svnlook author -r $REV $REPOS`
TRAC_ENV='/var/lib/darcs/repos/libobby/trac/'

/usr/bin/python /var/lib/darcs/repos/libobby/tmp/trac-post-commit-hook \
-p "$TRAC_ENV"  \
-r "$REV"       \
-u "$AUTHOR"    \
-m "$LOG"

Hope to help,
Philipp Kern

_______________________________________________
darcs-users mailing list
[email protected]
http://www.abridgegame.org/mailman/listinfo/darcs-users

Reply via email to