Access command line arguments from In-Process Python hook

durwin at mgtsciences.com durwin at mgtsciences.com
Thu Jun 19 15:33:06 UTC 2014


Matt Mackall <mpm at selenic.com> wrote on 06/18/2014 06:59:32 PM:

> From: Matt Mackall <mpm at selenic.com>
> To: durwin at mgtsciences.com
> Cc: mercurial at selenic.com
> Date: 06/18/2014 06:59 PM
> Subject: Re: Access command line arguments from In-Process Python hook
> 
> 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.
> 
> 

Thank you for the reply.  Normally when a new branch is pushed the option 
--new-branch is specified. So using the force option for both normal and 
branch pushes is an acceptable method for what I am doing?  The repository 
will handle the forced push appropriately for both branch and 
non-branches?



Durwin F. De La Rue
Management Sciences, Inc.
6022 Constitution Ave. NE
Albuquerque, NM  87110
Phone (505) 255-8611



This email message and any attachments are for the sole use of the 
intended recipient(s) and may contain proprietary and/or confidential 
information which may be privileged or otherwise protected from 
disclosure. Any unauthorized review, use, disclosure or distribution is 
prohibited. If you are not the intended recipient(s), please contact the 
sender by reply email and destroy the original message and any copies of 
the message as well as any attachments to the original message.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mercurial-scm.org/pipermail/mercurial/attachments/20140619/3781dc1d/attachment-0002.html>


More information about the Mercurial mailing list