Kiln » TortoiseHg » TortoiseHg
Clone URL:  
Pushed to one repository · View In Graph Contained in 0.7.1, 0.7.2, and 0.7.3

thgshelve: more robust handling of question dialog return code

fixes traceback reported in issue #87

Changeset fd9dd7993bf8

Parent 73fc07fb31e9

by Steve Borho

Changes to one file · Browse files at fd9dd7993bf8 Showing diff from parent 73fc07fb31e9 Diff from another changeset...

 
151
152
153
154
155
156
157
158
 
159
 
 
160
161
162
 
151
152
153
 
 
154
155
 
156
157
158
159
160
161
162
@@ -151,12 +151,12 @@
  dialog.set_transient_for(self)   rval = dialog.run()   dialog.destroy() - if rval == -1: - return   if rval == 1:   doforce = True - if rval == 2: + elif rval == 2:   doappend = True + else: + return     # capture the selected hunks to shelve   fc = []