HG_URL in changegroup hook

Ryan rnideffer at gmail.com
Sat Jan 22 13:54:02 CST 2011


I've setup a simple changegroup hook for my Mercurial repositories to
email the set of changes to interested users. I'd like to use a single
script for every repository I manage, and I would also like to
identify the repository the changegroup came from. According to the
Mercurial Hooks documentation, the environment variable HG_URL is
available for this purpose. However, I am not getting what I'm
expecting from this variable:

expected:

https://repo01/hg/project

actual:

remote:https::rnideffer

Why is this the URL, and how do I get what I expected into the changegroup hook?


More information about the Mercurial mailing list