Forget a named branch?

Christian Ebert blacktrash at gmx.net
Mon Dec 10 17:05:31 UTC 2007


* Neal Becker on Monday, December 10, 2007 at 11:14:34 -0500
> Can I obsolete and just forget an old named branch?

Depends on what exactly you mean by "obsolete" and "forget". I
would do it this way:

$ hg update -C activebranch
$ HGMERGE=true hg merge oldbranch
$ hg revert -a -r activebranch
$ hg commit -m 'Discard oldbranch'

Then the output of "hg branches" however will still show
"oldbranch", but marked as (inactive).

c
-- 
keyword extension for Mercurial (http://selenic.com/mercurial):
<http://www.blacktrash.org/hg/hgkeyword/> (incl. 0.9.2 compatible branch)
Mercurial crew development repository + keyword extension:
<http://www.blacktrash.org/hg/hg-crew-keyword/>



More information about the Mercurial mailing list