Commits

Yuya Nishihara committed 7b484eb

wctxactions: allow to overwrite existing file on copy (fixes #1983)

  • Participants
  • Parent commits bc26472
  • Branches stable

Comments (0)

Files changed (1)

tortoisehg/hgqt/wctxactions.py

         return
     fname = hglib.fromunicode(fname)
     wfiles = [wfile, fname]
-    commands.copy(ui, repo, *wfiles)
+    opts = {'force': True}  # existing file is already checked by QFileDialog
+    commands.copy(ui, repo, *wfiles, **opts)
     return True
 
 def rename(parent, ui, repo, files):