[Commented On] D11165: largefile: replace the `normallookup` call when creating a new lfdirstate
baymax (Baymax, Your Personal Patch-care Companion)
phabricator at mercurial-scm.org
Mon Jul 19 20:03:39 UTC 2021
baymax added a comment.
baymax updated this revision to Diff 29510.
✅ refresh by Heptapod after a successful CI run (🐙 💚)
REPOSITORY
rHG Mercurial
CHANGES SINCE LAST UPDATE
https://phab.mercurial-scm.org/D11165?vs=29443&id=29510
BRANCH
default
CHANGES SINCE LAST ACTION
https://phab.mercurial-scm.org/D11165/new/
REVISION DETAIL
https://phab.mercurial-scm.org/D11165
AFFECTED FILES
hgext/largefiles/lfutil.py
CHANGE DETAILS
diff --git a/hgext/largefiles/lfutil.py b/hgext/largefiles/lfutil.py
--- a/hgext/largefiles/lfutil.py
+++ b/hgext/largefiles/lfutil.py
@@ -229,9 +229,12 @@
if len(standins) > 0:
vfs.makedirs(lfstoredir)
- for standin in standins:
- lfile = splitstandin(standin)
- lfdirstate.normallookup(lfile)
+ with lfdirstate.parentchange():
+ for standin in standins:
+ lfile = splitstandin(standin)
+ lfdirstate.update_file(
+ lfile, p1_tracked=True, wc_tracked=True, possibly_dirty=True
+ )
return lfdirstate
To: marmoute, #hg-reviewers, Alphare
Cc: mercurial-patches
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mercurial-scm.org/pipermail/mercurial-patches/attachments/20210719/97b895d1/attachment-0002.html>
More information about the Mercurial-patches
mailing list