Kiln » TortoiseHg » TortoiseHg
Clone URL:  
Pushed to one repository · View In Graph Contained in 0.8, 0.8.1, and 0.8.2

history: ctrl-p keyboard accelerator for 'zoom to parent'

Only works if the parent has been loaded into the graphview widget,
but I think this can simply be documented.

Fixes @185

Changeset f4be49ce0717

Parent be0976c8fc8f

by Steve Borho

Changes to 2 files · Browse files at f4be49ce0717 Showing diff from parent be0976c8fc8f Diff from another changeset...

Change 1 of 1 Show Entire File hggtk/​hgtk.py Stacked
 
25
26
27
28
 
29
30
31
 
25
26
27
 
28
29
30
31
@@ -25,7 +25,7 @@
 nonrepo_commands = 'userconfig clone debugcomplete init about help version'    # Add TortoiseHg signals, hooked to key accelerators in shlib -for sig in ('copy-clipboard', 'thg-diff'): +for sig in ('copy-clipboard', 'thg-diff', 'thg-parent'):   gobject.signal_new(sig, gtk.TreeView,   gobject.SIGNAL_ACTION, gobject.TYPE_NONE, ())  for sig in ('thg-exit', 'thg-close', 'thg-refresh', 'thg-accept'):
Change 1 of 2 Show Entire File hggtk/​history.py Stacked
 
390
391
392
 
 
 
 
393
394
395
 
440
441
442
 
443
444
 
 
 
 
 
445
446
447
 
390
391
392
393
394
395
396
397
398
399
 
444
445
446
447
448
449
450
451
452
453
454
455
456
457
@@ -390,6 +390,10 @@
  self.tree.add_accelerator('thg-diff', accelgroup, key,   modifier, gtk.ACCEL_VISIBLE)   self.tree.connect('thg-diff', self.thgdiff) + key, modifier = gtk.accelerator_parse('<Control>p') + self.tree.add_accelerator('thg-parent', accelgroup, key, + modifier, gtk.ACCEL_VISIBLE) + self.tree.connect('thg-parent', self.thgparent)   self.connect('thg-refresh', self.thgrefresh)     hbox = gtk.HBox() @@ -440,8 +444,14 @@
  return vbox     def thgdiff(self, treeview): + 'ctrl-d handler'   self._vdiff_change(None)   + def thgparent(self, treeview): + 'ctrl-p handler' + parent = self.repo['.'].rev() + self.graphview.set_revision_id(parent) +   def _strip_rev(self, menuitem):   rev = self.currow[treemodel.REVID]   res = Confirm(_('Strip Revision(s)'), [], self,