D5854: largefiles: migrate to scmutil.backuppath()

martinvonz (Martin von Zweigbergk) phabricator at mercurial-scm.org
Tue Feb 5 17:53:12 UTC 2019


martinvonz created this revision.
Herald added a subscriber: mercurial-devel.
Herald added a reviewer: hg-reviewers.

REVISION SUMMARY
  It seems unnecessary to convert the paths here back to repo-relative
  paths, but I'll leave that for someone else to clean up.

REPOSITORY
  rHG Mercurial

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

AFFECTED FILES
  hgext/largefiles/lfcommands.py

CHANGE DETAILS

diff --git a/hgext/largefiles/lfcommands.py b/hgext/largefiles/lfcommands.py
--- a/hgext/largefiles/lfcommands.py
+++ b/hgext/largefiles/lfcommands.py
@@ -465,11 +465,11 @@
         wctx = repo[None]
         for lfile in lfiles:
             lfileorig = os.path.relpath(
-                scmutil.origpath(ui, repo, wvfs.join(lfile)),
+                repo.wjoin(scmutil.backuppath(ui, repo, lfile)),
                 start=repo.root)
             standin = lfutil.standin(lfile)
             standinorig = os.path.relpath(
-                scmutil.origpath(ui, repo, wvfs.join(standin)),
+                repo.wjoin(scmutil.backuppath(ui, repo, standin)),
                 start=repo.root)
             if wvfs.exists(standin):
                 if (wvfs.exists(standinorig) and



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


More information about the Mercurial-devel mailing list