Kiln » TortoiseHg » TortoiseHg
Clone URL:  
Pushed to one repository · View In Graph Contained in 0.8, 0.8.1, and 0.8.2

history: confirm overwriting when export a patch

Changeset cb03cecd4876

Parent 7368374fb0c5

by Yuki KODAMA

Changes to one file · Browse files at cb03cecd4876 Showing diff from parent 7368374fb0c5 Diff from another changeset...

Change 1 of 1 Show Entire File hggtk/​history.py Stacked
 
618
619
620
 
 
 
 
 
621
622
623
 
618
619
620
621
622
623
624
625
626
627
628
@@ -618,6 +618,11 @@
    if result:   if os.path.exists(result): + res = 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