[PATCH 0 of 3] An attept at branch closing

John Mulligan phlogistonjohn at asynchrono.us
Sat Oct 4 21:33:36 UTC 2008


On 2008-10-04 5:03:44 pm Martin Geisler wrote:
> John Mulligan <phlogistonjohn at asynchrono.us> writes:
> > I have a Mercurial repository that was converted from CVS and has a
> > lot of branches I don't want to see, but some that I do. This
> > motivated my to try and implement a mechanism for (the oft requested?)
> > named branch closing.
>
> I have not used named branches for anything myselves, but from playing
> around with them I'm surpriced that adding
>
>   [defaults]
>   branches = -a
>
> to your .hgrc file does not suffice. It will make 'hg branches' output
> only branches which are not yet merged.

If I understand it right, I don't think these features cover the same thing. 
The branches we want closed do have unmerged heads, and do show up when the -
a option is used. However, I did only learn about this option while I working 
on my patches, so I could be mistaken.  

I also recently found the new behavior for merge makes things a lot less 
annoying in that repo. Still... I was mostly looking to implement what is on 
the wiki page: 
http://www.selenic.com/mercurial/wiki/index.cgi/PruningDeadBranches
in its final section.

Although, if this patch set just reveals that the wiki needs updating, so be 
it. :-)

--John M.

Also, it appears that I can't spell...



More information about the Mercurial-devel mailing list