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

changeset: confirm overwrite if file already exists on 'save at rev'

Changeset 7e93521eb82e

Parent ce2b5977aa86

by Yuki KODAMA

Changes to one file · Browse files at 7e93521eb82e Showing diff from parent ce2b5977aa86 Diff from another changeset...

 
488
489
490
 
 
 
 
 
 
 
 
491
492
493
 
488
489
490
491
492
493
494
495
496
497
498
499
500
501
@@ -488,6 +488,14 @@
  InitialDir=self.cwd,   FileName=filename).run()   if result: + if os.path.exists(result): + res = gdialog.Confirm(_('Confirm Overwrite'), [], self, + _('The file "%s" already exists!\n\n' + 'Do you want to overwrite it?') % result).run() + if res != gtk.RESPONSE_YES: + return + os.remove(result) +   q = Queue.Queue()   cpath = util.canonpath(self.repo.root, self.cwd, self.curfile)   hgcmd_toq(self.repo.root, q, 'cat', '--rev',