diff hgext/mq.py @ 41599:106b0bec162a

mq: migrate to scmutil.backuppath() Differential Revision: https://phab.mercurial-scm.org/D5855
author Martin von Zweigbergk <martinvonz@google.com>
date Mon, 04 Feb 2019 21:10:17 -0800
parents e67a85e0f19e
children 6ed520c3e932
line wrap: on
line diff
--- 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)))