On Sun, May 16, 2010 at 6:09 PM, David Wilhelm <d...@jumbledpile.com> wrote: > # HG changeset patch > # User David Wilhelm <d...@jumbledpile.com> > # Date 1274046616 25200 > # Node ID cc2b0a962df3cea4520b7148547e99f510ced119 > # Parent a2463ff6ee5be88a34dd520fe77cd1efffb524c9 > history: include branch heads in heads filter > > Match the `hg heads` change in Mercurial 1.5
Nice catch. Can you move this functionality to tortoisehg/util/hglib.py, right after 'getlivebranch()'? > diff --git a/tortoisehg/hgtk/history.py b/tortoisehg/hgtk/history.py > --- a/tortoisehg/hgtk/history.py > +++ b/tortoisehg/hgtk/history.py > @@ -1184,7 +1184,12 @@ > filtertext += _("Parents") > elif self.filter == 'heads': > ftitle(_('heads')) > - heads = [self.repo[x].rev() for x in self.repo.heads()] > + bheads = [] > + for b, ls in self.repo.branchmap().iteritems(): > + bheads += [self.repo[x] for x in ls] > + heads = [x.rev() for x in bheads if not x.extra().get('close')] > + heads.sort() > + heads.reverse() > opts['revlist'] = [str(x) for x in heads] > self.graphview.refresh(False, [], opts) > filtertext += _("Heads") -- Steve Borho ------------------------------------------------------------------------------ _______________________________________________ Tortoisehg-develop mailing list Tortoisehg-develop@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/tortoisehg-develop