hgext/mq.py
changeset 41605 e67a85e0f19e
parent 41546 bd3f03d8cc9f
child 41612 106b0bec162a
--- a/hgext/mq.py	Wed Feb 06 14:57:08 2019 -0800
+++ b/hgext/mq.py	Wed Feb 06 15:26:53 2019 -0800
@@ -738,10 +738,10 @@
         for f in sorted(files):
             absf = repo.wjoin(f)
             if os.path.lexists(absf):
+                absorig = scmutil.origpath(self.ui, repo, absf)
                 self.ui.note(_('saving current version of %s as %s\n') %
-                             (f, scmutil.origpath(self.ui, repo, f)))
-
-                absorig = scmutil.origpath(self.ui, repo, absf)
+                             (f, os.path.relpath(absorig)))
+
                 if copy:
                     util.copyfile(absf, absorig)
                 else: