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

clone: switch to gdialog prompts

Changeset 9158a19c69af

Parent e265b0aaae52

by Steve Borho

Changes to one file · Browse files at 9158a19c69af Showing diff from parent e265b0aaae52 Diff from another changeset...

Change 1 of 3 Show Entire File hggtk/​clone.py Stacked
 
7
8
9
10
 
11
12
13
 
245
246
247
248
 
 
249
250
251
252
253
254
 
 
255
256
257
 
297
298
299
300
 
301
302
303
304
 
 
305
306
307
 
7
8
9
 
10
11
12
13
 
245
246
247
 
248
249
250
251
252
253
 
 
254
255
256
257
258
 
298
299
300
 
301
302
303
304
 
305
306
307
308
309
@@ -7,7 +7,7 @@
 import gtk  import os  import pango -from dialog import error_dialog +import gdialog  from mercurial import hg, ui, cmdutil, util  from mercurial.i18n import _  import shlib @@ -245,13 +245,14 @@
    # verify input   if src == '': - error_dialog(self, _('Source path is empty'), _('Please enter')) + gdialog.Prompt(_('Source path is empty'), + _('Please enter a valid source path'), self).run()   self._src_input.grab_focus()   return False     if src == dest: - error_dialog(self, _('Source and dest are the same'), - _('Please specify a different destination')) + gdialog.Prompt(_('Source and dest are the same'), + _('Please specify a different destination'), self).run()   self._dest_input.grab_focus()   return False   @@ -297,11 +298,12 @@
  dlg.run()   dlg.hide()   except util.Abort, inst: - error_dialog(self, _('Clone aborted'), str(inst)) + gdialog.Prompt(_('Clone aborted'), str(inst), self).run()   return False   except:   import traceback - error_dialog(self, _('Clone error'), traceback.format_exc()) + gdialog.Prompt(_('Clone error'), + traceback.format_exc(), self).run()   return False     self._add_src_to_recent(src)