On 29.09.2009 20:51, Henrik Stuart wrote: > # HG changeset patch > # User Henrik Stuart <h...@hstuart.dk> > # Date 1254241320 -7200 > # Node ID dc36e481ca1169bb99cdcafd01aed611341a904e > # Parent f1988a6e5578f9bd72860ad178f0e38f5294c422 > history: support filtering by commit author exclusively > > diff -r f1988a6e5578 -r dc36e481ca11 tortoisehg/hgtk/history.py > --- a/tortoisehg/hgtk/history.py Tue Sep 29 18:02:47 2009 +0200 > +++ b/tortoisehg/hgtk/history.py Tue Sep 29 18:22:00 2009 +0200 > @@ -313,6 +313,8 @@ > gdialog.Prompt(_('Invalid date specification'), > str(e), self).run() > return > + elif mode == 4: # User > + opts['user'] = [w.strip() for w in text.split(',')] > else: > return > self.custombutton.set_active(True) > @@ -464,7 +466,8 @@ > opts = {'date': None, 'no_merges':False, 'only_merges':False, > 'keyword':[], 'branch':None, 'pats':[], 'filehist':None, > 'revrange':[], 'revlist':[], 'noheads':False, > - 'branch-view':False, 'rev':[] } > + 'branch-view':False, 'rev':[], > + 'user':[]} > if self.filteropts is not None: opts = self.filteropts > opts['branch-view'] = self.compactgraph > opts.update(kwopts) > @@ -827,7 +830,8 @@ > > filtercombo = gtk.combo_box_new_text() > for f in (_('Rev Range'), _('File Patterns'), > - _('Keywords'), _('Date')): > + _('Keywords'), _('Date'), > + _('User')): > filtercombo.append_text(f) > filtercombo.set_active(1) > self.filtercombo = filtercombo > diff -r f1988a6e5578 -r dc36e481ca11 tortoisehg/hgtk/logview/revgraph.py > --- a/tortoisehg/hgtk/logview/revgraph.py Tue Sep 29 18:02:47 2009 +0200 > +++ b/tortoisehg/hgtk/logview/revgraph.py Tue Sep 29 18:22:00 2009 +0200 > @@ -537,4 +537,15 @@ > break > if miss: > continue > + > + if opts['user']: > + miss = 0 > + for u in [u.lower() for u in opts['user']]: > + if u not in ctx.user().lower(): > + print 'missing'
there's a leftover print > + miss = 1 > + break > + if miss: > + continue > + > stack.append((rev, (0,0), [], None)) > Does this work too if the graph is turned off? ------------------------------------------------------------------------------ Come build with us! The BlackBerry® Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9-12, 2009. Register now! http://p.sf.net/sfu/devconf _______________________________________________ Tortoisehg-develop mailing list Tortoisehg-develop@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/tortoisehg-develop