Access command line arguments from In-Process Python hook
durwin at mgtsciences.com
durwin at mgtsciences.com
Wed Jun 18 19:40:52 UTC 2014
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. When someone pushes
from their clone, whether they cloned from A or B, the other gets the push
as well. But if they created a branch, the in-process hook does not know
this and executes the same push as it always does. This fails of course.
My question is, is there a way for an in-process Python hook to determine
if a branch is being pushed? I was just now recalling reading somewhere
about a method of capturing text returned from a command (maybe I am
wrong). Is this possible? If so I could parse the retuned message. Are
there any other ideas about doing this?
Thank You,
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/20140618/d7920e00/attachment-0002.html>
More information about the Mercurial
mailing list