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

synch: add shelve shortcut

Closes #491

Changeset 8f47f0b3dfe0

Parent 7a5f02341b7d

by Emmanuel Rosa

Changes to one file · Browse files at 8f47f0b3dfe0 Showing diff from parent 7a5f02341b7d Diff from another changeset...

Change 1 of 3 Show Entire File hggtk/​synch.py Stacked
 
21
22
23
 
24
25
26
 
88
89
90
 
 
 
 
91
92
93
 
505
506
507
 
 
 
 
508
509
510
 
21
22
23
24
25
26
27
 
89
90
91
92
93
94
95
96
97
98
 
510
511
512
513
514
515
516
517
518
519
@@ -21,6 +21,7 @@
 from thgutil import hglib, settings, paths    from hggtk import dialog, gtklib, hgthread, history, thgconfig, hgemail +from hggtk import thgshelve    class SynchDialog(gtk.Window):   def __init__(self, repos=[], pushmode=False, fromlog=False): @@ -88,6 +89,10 @@
  self.email_clicked,   tip=_('Email local outgoing changes to'   ' one or more recipients')), + self.toolbutton(gtk.STOCK_UNDO, + _('Shelve'), + self.shelve_clicked, + tip=_('Shelve uncommited changes')),   gtk.SeparatorToolItem(),   self.stop_button,   gtk.SeparatorToolItem(), @@ -505,6 +510,10 @@
  dlg.present()   dlg.set_transient_for(None)   + def shelve_clicked(self, toolbutton, data=None): + dlg = thgshelve.run(self.ui) + dlg.display() +   def incoming_clicked(self, toolbutton, data=None):   aopts = self.get_advanced_options()   cmd = ['incoming']