Prevent commit to wrong named branch
Gaunet Sylvain (ASTEK)
Sylvain.Gaunet at cnes.fr
Tue May 10 06:47:55 UTC 2011
You could read the following page : http://mercurial.selenic.com/wiki/Hook
-----Message d'origine-----
De : mercurial-bounces at selenic.com [mailto:mercurial-bounces at selenic.com] De la part de jf
Envoyé : lundi 9 mai 2011 11:44
À : mercurial at selenic.com
Objet : Re: RE : Prevent commit to wrong named branch
Hi,
>> I'm planning to use mercurial with named banches, but I think it's
>> too easy to commit something in the wrong branch It would be great if
>> I could add an option to "hg commit" which will blame me if I'm not
>> where I think I am, for example: hg commit -b branch_1_0 -m "msg"
>> commit aborted: silly dev: you're in default branch not in branch_1_0
> Yes, you could use the precommit hook.
Please could you tell me more, especially how a hook can add options to command line ? Thanks. _______________________________________________
Mercurial mailing list
Mercurial at selenic.com http://selenic.com/mailman/listinfo/mercurial
More information about the Mercurial
mailing list