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

archive: show result text and icon

Changeset f32ff8178bb4

Parent c8be9a326541

by Yuki KODAMA

Changes to one file · Browse files at f32ff8178bb4 Showing diff from parent c8be9a326541 Diff from another changeset...

 
272
273
274
275
 
276
277
278
 
 
 
 
 
 
 
 
279
280
281
 
272
273
274
 
275
276
 
 
277
278
279
280
281
282
283
284
285
286
287
@@ -272,10 +272,16 @@
  cmdline.append(type)   cmdline.append(hglib.fromutf(dest))   - def cmd_done(returncode): + def cmd_done(returncode, useraborted):   self.switch_to(MODE_NORMAL, cmd=False) - if returncode == 0 and not self.cmd.is_show_log(): - self.response(gtk.RESPONSE_CLOSE) + if returncode == 0: + if not self.cmd.is_show_log(): + self.response(gtk.RESPONSE_CLOSE) + self.cmd.set_result(_('Archived successfully'), style='ok') + elif useraborted: + self.cmd.set_result(_('Canceled archiving'), style='error') + else: + self.cmd.set_result(_('Failed to archive'), style='error')   self.switch_to(MODE_WORKING)   self.cmd.execute(cmdline, cmd_done)