trac post-commit hook

Martin Pool mbp at canonical.com
Thu Feb 8 03:28:27 GMT 2007


On  7 Feb 2007, Sabin Iacob <iacobs at m0n5t3r.info> wrote:
> Hi list
> 
> after a bit of fiddling I managed to port the trac SVN post-commit 
> script to bzr (trac+trac-bzr) and it works like a charm, however I have 
> a problem: the hook is only run when I commit from the same machine as 
> the trac environment; is there a way to have bzr+ssh run hooks defined 
> on the remote machine when committing?

There is no such mechanism at present but we'd definitely like to add
one when the smartserver is a little further along.  There were some
posts from Robert recently talking about both the server and hooks.

> I am not sure I know what I'm doing, but here is what I'm trying to 
> accomplish: local branches bound to public branches stored on my web 
> server (and browse-able/ticket-able, etc. with trac). One idea would be 
> to mount the trac environment over some network fs (probably sshfs), but 
> I was hoping for a more elegant solution that doesn't involve mounts I 
> can forget about so easily.

As an interim measure could you maybe have a hook on the clients that
sends a message to trac, perhaps just with 

   ssh tracserver tell-track-about-commit ...

-- 
Martin



More information about the bazaar mailing list