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

history: ask to overwrite an existing bundle file

Changeset 870c22af24f7

Parent ee88384b8e24

by Giampaolo Fadel

Changes to one file · Browse files at 870c22af24f7 Showing diff from parent ee88384b8e24 Diff from another changeset...

Change 1 of 1 Show Entire File hggtk/​history.py Stacked
 
692
693
694
 
 
 
 
 
 
 
 
695
696
697
 
692
693
694
695
696
697
698
699
700
701
702
703
704
705
@@ -692,6 +692,14 @@
  InitialDir=self.repo.root,   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) +   cmdline = ['hg', 'bundle', '--base', str(parent), result]   dlg = hgcmd.CmdDialog(cmdline)   dlg.show_all()