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: setup custom filters based on command arguments

Changeset f3fd13ff4448

Parent 25079b1b3df3

by Steve Borho

Changes to one file · Browse files at f3fd13ff4448 Showing diff from parent 25079b1b3df3 Diff from another changeset...

Change 1 of 4 Show Entire File hggtk/​history.py Stacked
 
243
244
245
246
 
247
248
 
 
249
250
251
252
 
 
253
254
255
 
524
525
526
 
527
528
529
 
533
534
535
536
 
 
537
538
539
 
542
543
544
545
546
547
548
549
 
243
244
245
 
246
247
248
249
250
251
252
253
254
255
256
257
258
259
 
528
529
530
531
532
533
534
 
538
539
540
 
541
542
543
544
545
 
548
549
550
 
 
551
552
553
@@ -243,13 +243,17 @@
  self.pats = []     opts = self.opts - if self.opts.get('filehist'): + if opts['filehist']:   self.custombutton.set_active(True)   self.filter = 'custom' + self.filtercombo.set_active(1) + self.filterentry.set_text(opts['filehist'])   opts['pats'] = [opts['filehist']]   elif self.pats:   self.custombutton.set_active(True)   self.filter = 'custom' + self.filtercombo.set_active(1) + self.filterentry.set_text(', '.join(self.pats))   opts['pats'] = self.pats   self.reload_log(**opts)   @@ -524,6 +528,7 @@
  _('Keywords'), _('Date')):   filtercombo.append_text(f)   filtercombo.set_active(1) + self.filtercombo = filtercombo   filterbox.pack_start(filtercombo, False)     helpbutton = gtk.Button("?") @@ -533,7 +538,8 @@
    entry = gtk.Entry()   entry.connect('activate', self.filter_entry_activated, filtercombo) - filterbox.pack_start(entry, False) + self.filterentry = entry + filterbox.pack_start(entry, True)     colmenu = gtk.MenuToolButton('')   colmenu.set_menu(self.view_menu()) @@ -542,8 +548,6 @@
  b = colmenu.child.get_children()[0]   b.unmap()   b.set_sensitive(False) - - filterbox.pack_start(gtk.Label(''), True, True) # expanding blank label   filterbox.pack_start(colmenu, False, False)     vbox = gtk.VBox()