mq: migrate to scmutil.backuppath()
authorMartin von Zweigbergk <martinvonz@google.com>
Mon, 04 Feb 2019 21:10:17 -0800
changeset 41599 106b0bec162a
parent 41598 e89e78a725ee
child 41600 a8ccd821b7d2
mq: migrate to scmutil.backuppath() Differential Revision: https://phab.mercurial-scm.org/D5855
hgext/mq.py
--- a/hgext/mq.py	Mon Feb 04 21:00:58 2019 -0800
+++ b/hgext/mq.py	Mon Feb 04 21:10:17 2019 -0800
@@ -738,7 +738,7 @@
         for f in sorted(files):
             absf = repo.wjoin(f)
             if os.path.lexists(absf):
-                absorig = scmutil.origpath(self.ui, repo, absf)
+                absorig = scmutil.backuppath(self.ui, repo, f)
                 self.ui.note(_('saving current version of %s as %s\n') %
                              (f, os.path.relpath(absorig)))