Kiln » TortoiseHg » TortoiseHg
Clone URL:  
Pushed to one repository · View In Graph Contained in 1.0, 1.0.1, and 1.0.2

stable changeset: catch Abort and IOError from hg cat

Closes #907

Changeset 8d4247a6e83d

Parent 30ce9122ccdd

by Steve Borho

Changes to one file · Browse files at 8d4247a6e83d Showing diff from parent 30ce9122ccdd Diff from another changeset...

 
915
916
917
918
 
 
 
919
920
921
 
 
922
923
924
 
915
916
917
 
918
919
920
921
922
923
924
925
926
927
928
@@ -915,10 +915,14 @@
  result = gtklib.NativeSaveFileDialogWrapper(title=_("Save file to"),   initial=self.cwd,   filename=filename).run() - if result: + if not result: + return + try:   q = Queue.Queue()   hglib.hgcmd_toq(q, 'cat', '--rev',   str(self.currev), '--output', hglib.fromutf(result), self.curfile) + except (util.Abort, IOError), e: + gdialog.Prompt(_('Unable to save file'), str(e), self).run()     def diff_to_local(self, menuitem):   if not self.curfile: