Access command line arguments from In-Process Python hook

Matt Mackall mpm at selenic.com
Thu Jun 19 00:59:32 UTC 2014


On Wed, 2014-06-18 at 13:40 -0600, durwin at mgtsciences.com wrote:
> I have 2 cloned repositories.  Repository A is configured with HTTP 
> support, repository B is SSH only.  Each has a changegroup hook to push to 
> the other.  This works for everything but a branch.

If your hook's intent is to continuously mirror A<->B, it seems like
your hook should just use push -f.

Also, for future reference, in-process hooks _are not supported_ because
the internal API _is not supported_. I recommend you simply do:

[hooks]
changegroup = hg push -f otherrepo

-- 
Mathematics is the supreme nostalgia of our time.





More information about the Mercurial mailing list