Automatic commit mails for darcs repositories

Luca Capello luca at pca.it
Thu Jan 24 01:19:07 UTC 2008


Hi all!

I investigate how to have automatic commit mails for darcs:

- unluckily, either I haven't completely understood the darcs manual [1]
  or darcs ATM lacks this feature (bug #462330 [2])

- luckily, Marco Baringer already wrote a script for that purpose [3]

I tested the setup with rfc2388.upstream [4] and it works nicely.  Here
how to activate this feature (part of the following instructions are
already available at the Debian Wiki [5], which will be updated in the
next days):


1) create the darcs repository on Alioth

   alioth:~$ cd /darcs/pkg-common-lisp/
   alioth:/darcs/pkg-common-lisp$ mkdir rfc2388.upstream
   alioth:/darcs/pkg-common-lisp$ cd rfc2388.upstream/
   alioth:/darcs/pkg-common-lisp/rfc2388.upstream$ darcs initialize


2) set up the automatic commit mail to the PTS [6]

   alioth:/darcs/pkg-common-lisp/rfc2388.upstream$ cat >_darcs/prefs/defaults
   apply run-posthook
   apply posthook TO=rfc2388_cvs at packages.qa.debian.org PROJECT=pkg-common-lisp \
    REPO_NAME=rfc2388.upstream /home/users/gismo/bin/darcs-email-changelog.sh

   Since pkg-common-lisp-commits@ still exists [7], if you subscribe
   this mailing list to the PTS (keyword 'cvs' only, please), as soon as
   one of the mailing list administrator has confirmed the subscription
   the list will receive the automatic commit mail as well.


3) push the local repository to the Alioth one:

   local:~$ cd ~/var/lib/darcs/rfc2388.upstream
   local:~/var/lib/darcs/rfc2388.upstream$ darcs push \
    gismo at alioth.debian.org:/darcs/pkg-common-lisp/rfc2388.upstream
   [...]
   Finished applying...


4) if you're subscribed to the PTS with keyword 'cvs' you should have
   got mail :-)


Suggestions, comments?

Thx, bye,
Gismo / Luca

Footnotes: 
[1] http://www.darcs.net/manual/
[2] http://bugs.debian.org/cgi-bin/bugreport.cgi?&bug=462330
[3] http://bugs.debian.org/cgi-bin/bugreport.cgi?msg=5;filename=darcs-email-changelog.sh;att=1;bug=462330
[4] http://darcs.debian.org/cgi-bin/darcsweb.cgi?r=pkg-common-lisp/rfc2388.upstream;a=summary
[5] http://bugs.debian.org/cgi-bin/bugreport.cgi?archive=yes&bug=462330
[6] http://www.debian.org/doc/manuals/developers-reference/ch-resources.en.html#s-pts-vcs-commit
[7] http://lists.alioth.debian.org/pipermail/pkg-common-lisp-devel/2008-January/000018.html
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 188 bytes
Desc: not available
Url : http://lists.alioth.debian.org/pipermail/pkg-common-lisp-devel/attachments/20080124/6f28da02/attachment.pgp 


More information about the pkg-common-lisp-devel mailing list