Patch subject is complete summary.

# HG changeset patch
# User Emmanuel Rosa <goaway1...@gmail.com>
# Date 1252977674 14400
# Node ID 3309415f398d237d127f47378d71b4e1cee945fb
# Parent  155cbb99f83f3ef3610723c86c8198af000e8a02
history: remove redundent file overwrite confirmations

diff --git a/tortoisehg/hgtk/history.py b/tortoisehg/hgtk/history.py
--- a/tortoisehg/hgtk/history.py
+++ b/tortoisehg/hgtk/history.py
@@ -969,14 +969,6 @@
                                              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)
-
             # In case new export args are added in the future, merge the
             # hg defaults
             exportOpts= self.merge_opts(commands.table['^export'][1], ())
@@ -998,14 +990,6 @@
                                          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()
------------------------------------------------------------------------------
Come build with us! The BlackBerry&reg; Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9&#45;12, 2009. Register now&#33;
http://p.sf.net/sfu/devconf
_______________________________________________
Tortoisehg-develop mailing list
Tortoisehg-develop@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/tortoisehg-develop

Reply via email to