Remy,

Thanks for the help ... unfortunately I can't seem to get it to work.

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.

I was able to get it to work manually from the command line if I
referenced a specific revision and ran the same command ("trac-admin /
path/to/env changeset added <my-repository> 31:80bfbcfe2bbe") ... but
that leaves me back at a manual solution.

Also, I ended up trying to do this with a bat file since I read
somewhere (I've looked at so many articles now my eyes are ready to
start bleeding) that the %HG_NODE% environment variable would be
available to a batch file.  But still, nothing.  I finally tried
researching doing this all in python ... but every article, script,
and how-to guide for integrating Hg and Trac via Python referenced a
plugin that had an explicit "you won't need this anymore in 0.12"
notice.

This is where I'm stuck.  The hooks half work when I manually insert
changesets, I can't get Windows to work with the right variables to do
things automatically, and every reference to scripting the hook with
Python is dangerously out of date.  Any new ideas?

On Jun 15, 12:51 am, Remy Blank <[email protected]> wrote:
> > So, what do I need to do such that commits/pushes that reference
> > tickets are automatically added to the ticket using TracMercurial?
>
> You need to add commit and changegroup hooks to each of your central
> repositories. I have added a section to:
>
>  http://trac.edgewall.org/wiki/TracRepositoryAdmin
>
> to show the syntax on *nix.
>
> -- Remy
>
>  signature.asc
> < 1KViewDownload

-- 
You received this message because you are subscribed to the Google Groups "Trac 
Users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/trac-users?hl=en.

Reply via email to