[issue3314] hg heads --topo show closed

James Emerton bugs at mercurial.selenic.com
Thu Mar 8 14:23:11 CST 2012


New submission from James Emerton <james at tri-tech.com>:

After a named branch has been closed with --close-branch it still appears in 
the output of `hg heads --topo`

I would like the output to filter closed branches, unless --closed was also 
specified. Failing that, another mechanism to suppress the output of closed 
branches would be appreciated.

Rationale:

We use named branches for maintenance of released versions. Once a version 
is no longer maintained it is closed. We typically have two or three 
maintenance branches active at any given time.

Issues are fixed in the oldest version to which they apply, and maintenance 
branches are periodically merged forward into later maintenance branches. I 
am using `hg heads --topo` to determine what branches have changes that need 
to be merged forward, but output is gradually becoming more cluttered with 
closed branches.


I am happy to provide a patch to fix this behaviour, but I would like to 
hear comments, criticism, or approval before I undertake the work.

----------
messages: 19341
nosy: jamesemerton
priority: wish
status: unread
title: hg heads --topo show closed

____________________________________________________
Mercurial issue tracker <bugs at mercurial.selenic.com>
<http://mercurial.selenic.com/bts/issue3314>
____________________________________________________


More information about the Mercurial-devel mailing list