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

gdialog: return only when command matches

Problem reported by Giorgos Keramidas

Changeset 29f03b0cab67

Parent 944b5a53b1e3

by Steve Borho

Changes to one file · Browse files at 29f03b0cab67 Showing diff from parent 944b5a53b1e3 Diff from another changeset...

Change 1 of 2 Show Entire File hggtk/​gdialog.py Stacked
 
197
198
199
 
200
201
202
 
204
205
206
207
 
208
209
210
 
197
198
199
200
201
202
203
 
205
206
207
 
208
209
210
211
@@ -197,6 +197,7 @@
  path = cmd   diffopts = self.ui.config('extdiff', 'opts.' + cmd, '')   diffopts = diffopts and [diffopts] or [] + return path, diffopts   elif cmd == usercmd:   # command = path opts   if path: @@ -204,7 +205,7 @@
  path = diffopts.pop(0)   else:   path, diffopts = cmd, [] - return path, diffopts + return path, diffopts   return None, None     def _parse_config(self):