Kiln » TortoiseHg » TortoiseHg
Clone URL:  
Pushed to one repository · View In Graph Contained in 0.9, 0.9.1, and 0.9.1.1

history: support filtering by commit author exclusively

Changeset 491aa0411e77

Parent f16a874fa811

by Henrik Stuart

Changes to 2 files · Browse files at 491aa0411e77 Showing diff from parent f16a874fa811 Diff from another changeset...

 
313
314
315
 
 
316
317
318
 
464
465
466
467
 
 
468
469
470
 
827
828
829
830
 
 
831
832
833
 
313
314
315
316
317
318
319
320
 
466
467
468
 
469
470
471
472
473
 
830
831
832
 
833
834
835
836
837
@@ -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
 
537
538
539
 
 
 
 
 
 
 
 
 
 
 
540
 
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
@@ -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' + miss = 1 + break + if miss: + continue +   stack.append((rev, (0,0), [], None))