changeset 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 e89e78a725ee
children a8ccd821b7d2
files hgext/mq.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
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)))