Eric Mann wrote:
> First I tried adding the hooks as-is, but nothing seemed to happen.
> I'm running everything on Windows, so I was sure I needed to do
> something differently.  I found some references to using %HG_NODE%
> instead of $HG_NODE when working on Windows, so I gave that a try ...
> I stopped getting errors, but %HG_NODE% always seems to be empty, so
> it's still not working.

Ah, Windows...

I assume you are pushing to the central repository, and never committing
there. So the commit hook is useless, and you need to have the
changegroup hook running. Unfortunately, you will have trouble finding
an alternative to xargs for Windows.

> I finally tried researching doing this all in python

That's probably your best bet. Create a Python hook that invokes
trac-admin through the subprocess module.

Now that you mention it, we should actually bundle a Python hook for
Mercurial together with the MercurialPlugin. It can probably be made
platform-neutral. I'll give it a try.

-- Remy

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to