tags:

views:

35

answers:

1

Is there a way to prevent closed branches from showing up at the top when running the hg view command? I know about the 'limit' option. I don't really need closed branches to completely disappear from the view, but it would be nice if they would stay down (they were closed long ago), rather than popping up near the top every time I perform a merge.

hg view with a closed branch near current development

Here is an example screenshot where this happens. You can see on the right that the times are all mixed up, which isn't too terrible in this case, but in my real repo the closed-off branches pop up near the top everytime I have a merge, which gets annoying when the closed-off branch is well over a year ago and truly not interesting.

+4  A: 

No, I'm afraid nobody has updated hg view to be aware of closed branches. The extension is mostly abandoned these days since none of the core developers use it or know how to program in Tcl/Tk. We talk about removing hgk at every major release...

Your best bet is to upgrade to TortoiseHg which is under heavy development. The best thing is that it works on both Windows and Linux -- see the hgtk wiki page. In hgtk you can filter using the new revision sets syntax. This revset query will find open changesets:

ancestors(head() and not closed())
Martin Geisler