To prevent that collision I would think you could add a wrapper script that touches a consistently named file when it starts.

Once the build completes the wrapped script removed the file.

Hypothetically (since I'm not familiar with darcs' hooks) you could also add a prehook that would prevent additional commits while a build is in process. Depending on your needs, of course.

Corey


On Jan 4, 2006, at 10:54 AM, Olivier Thauvin wrote:

Le Mercredi 04 Janvier 2006 19:38, Thiago Arrais a écrit :
All,

I have added a posthook to my apply command, so that the build process gets triggered when changes are pushed in to the main repo. Everything
works fine, the only problem is that when I push the changes my
workstation freezes and needs to wait for the build to finish on the
server, i.e. the 'darcs push' command doesn't return until the build
completes.

Any suggestions?

This is a common with VCS, common solution is to use a script and put a '&' at the end of the command. But you'll create an issue if another push is done
before process end.
_______________________________________________
darcs-users mailing list
[email protected]
http://www.abridgegame.org/mailman/listinfo/darcs-users

Corey Jewett
[EMAIL PROTECTED]




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

Reply via email to