Hook For push

Ronald Winacott rwinacott at vixs.com
Fri Jan 4 16:15:36 UTC 2013


Take a look at http://code.google.com/p/hghooklib/wiki/ForceOneHead

RonW

From: mercurial-bounces at selenic.com [mailto:mercurial-bounces at selenic.com] On Behalf Of Jeshwanth Kumar N K Jeshu
Sent: Saturday, December 08, 2012 1:57 AM
To: mercurial at selenic.com
Subject: Hook For push

Hello All,

I have a repository in bitbucket, having two branches 1. default and 2. feature.

How to create hook for below case?

1. I will make some changes in default branch commit it. update to branch feature make some changes and commit it. Now I have two heads 1 in default branch and 1 in feature branch.
2. Now I want to push the commits to remote repo only for working branch eg: feature. I can use hg push -b <branch_name> eg: hg push -b feature.
3. If I do just hg push, both default and feature changes will be pushed.
4. So how to create an hook if there is head created in both branches, If I just execute "hg push" inside one of the branch. It should abort the push and give an abort message.

--
Regards
Jeshwanth Kumar N K
+91-7411483498

________________________________
IMPORTANT CONFIDENTIALITY NOTICE - This message and any attached documents contain information from ViXS Systems Inc. and are confidential and privileged and further subject to any confidentiality agreement between the parties. The information is intended to be viewed only by the individual(s) or entity(ies) to whom the message is addressed. If you are not the intended recipient, be aware that reading, disclosing, copying, distributing or using the contents of this transmission is prohibited. Please notify us immediately if you have received this transmission in error, and delete this message along with any attached files.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mercurial-scm.org/pipermail/mercurial/attachments/20130104/e8275f75/attachment-0002.html>


More information about the Mercurial mailing list