D5855: mq: migrate to scmutil.backuppath()

martinvonz (Martin von Zweigbergk) phabricator at mercurial-scm.org
Thu Feb 7 09:22:16 EST 2019


martinvonz added a comment.


  In https://phab.mercurial-scm.org/D5855#86020, @yuja wrote:
  
  > > - 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?
  
  
  Oops, not intended. Feel free to fix it. Otherwise I'll do that in about two hours.

REPOSITORY
  rHG Mercurial

REVISION DETAIL
  https://phab.mercurial-scm.org/D5855

To: martinvonz, #hg-reviewers
Cc: yuja, mercurial-devel


More information about the Mercurial-devel mailing list