# HG changeset patch
# User Peter Ruibal <[email protected]>
# Date 1237264740 25200
# Node ID 4983aa35c221f43f229b8af18723b92c4683a823
# Parent 24d2b64235b876a3efdd26362b282d30352372be
history: export should prompt for overwrites and re-create files
diff -r 24d2b64235b8 -r 4983aa35c221 hggtk/gdialog.py
--- a/hggtk/gdialog.py Sat Jan 10 08:54:20 2009 -0800
+++ b/hggtk/gdialog.py Mon Mar 16 21:39:00 2009 -0700
@@ -522,6 +522,7 @@
, gtk.RESPONSE_CANCEL
, gtk.STOCK_SAVE
, gtk.RESPONSE_OK))
+ file_save.set_do_overwrite_confirmation(True)
file_save.set_default_response(gtk.RESPONSE_OK)
file_save.set_current_folder(self.InitialDir)
file_save.set_current_name(self.FileName)
diff -r 24d2b64235b8 -r 4983aa35c221 hggtk/history.py
--- a/hggtk/history.py Sat Jan 10 08:54:20 2009 -0800
+++ b/hggtk/history.py Mon Mar 16 21:39:00 2009 -0700
@@ -512,6 +512,9 @@
result = fd.run()
if result:
+ if os.path.exists(result):
+ 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], ())
------------------------------------------------------------------------------
Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are
powering Web 2.0 with engaging, cross-platform capabilities. Quickly and
easily build your RIAs with Flex Builder, the Eclipse(TM)based development
software that enables intelligent coding and step-through debugging.
Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com
_______________________________________________
Tortoisehg-develop mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tortoisehg-develop