Kiln » TortoiseHg » TortoiseHg
Clone URL:  
Pushed to one repository · View In Graph Contained in 0.9, 0.9.1, and 0.9.1.1

stable history: remove duplicate file overwrite confirmation

Changeset e221c07a4258

Parent 056886063a0b

by Emmanuel Rosa

Changes to one file · Browse files at e221c07a4258 Showing diff from parent 056886063a0b Diff from another changeset...

 
1813
1814
1815
1816
1817
1818
1819
1820
1821
1822
1823
1824
1825
1826
 
1842
1843
1844
1845
1846
1847
1848
1849
1850
1851
1852
1853
1854
1855
 
1813
1814
1815
 
 
 
 
 
 
 
 
1816
1817
1818
 
1834
1835
1836
 
 
 
 
 
 
 
 
1837
1838
1839
@@ -1813,14 +1813,6 @@
  initial=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], ()) @@ -1842,14 +1834,6 @@
  initial=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()