Changeset 7e93521eb82e…
Parent ce2b5977aa86…
by
Changes to one file · Browse files at 7e93521eb82e Showing diff from parent ce2b5977aa86 Diff from another changeset...
@@ -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',
|
Loading...