largefiles: migrate to scmutil.backuppath()
It seems unnecessary to convert the paths here back to repo-relative
paths, but I'll leave that for someone else to clean up.
Differential Revision: https://phab.mercurial-scm.org/D5854
--- a/hgext/largefiles/lfcommands.py Tue Feb 05 11:14:07 2019 -0800
+++ b/hgext/largefiles/lfcommands.py Mon Feb 04 21:00:58 2019 -0800
@@ -465,11 +465,11 @@
wctx = repo[None]
for lfile in lfiles:
lfileorig = os.path.relpath(
- scmutil.origpath(ui, repo, wvfs.join(lfile)),
+ scmutil.backuppath(ui, repo, lfile),
start=repo.root)
standin = lfutil.standin(lfile)
standinorig = os.path.relpath(
- scmutil.origpath(ui, repo, wvfs.join(standin)),
+ scmutil.backuppath(ui, repo, standin),
start=repo.root)
if wvfs.exists(standin):
if (wvfs.exists(standinorig) and