Changeset 870c22af24f7…
Parent ee88384b8e24…
by
Changes to one file · Browse files at 870c22af24f7 Showing diff from parent ee88384b8e24 Diff from another changeset...
@@ -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()
|
Loading...