D5855: mq: migrate to scmutil.backuppath()

Yuya Nishihara yuya at tcha.org
Thu Feb 7 07:51:11 EST 2019


> -                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)))
> +                             (f, os.path.relpath(absorig, start=repo.root)))

Why printing a repo-relative path instead of cwd-relative one?


More information about the Mercurial-devel mailing list