[Updated] D11112: largefile: use `parentchange` markcommitted

marmoute (Pierre-Yves David) phabricator at mercurial-scm.org
Mon Jul 19 13:16:49 UTC 2021


Closed by commit rHGb1b6d0cad455: largefile: use `parentchange` markcommitted (authored by marmoute).
This revision was automatically updated to reflect the committed changes.

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D11112?vs=29372&id=29438

CHANGES SINCE LAST ACTION
  https://phab.mercurial-scm.org/D11112/new/

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

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
@@ -574,7 +574,8 @@
 def markcommitted(orig, ctx, node):
     repo = ctx.repo()
 
-    with ctx._repo.dirstate.parentchange():
+    lfdirstate = openlfdirstate(repo.ui, repo)
+    with lfdirstate.parentchange():
         orig(node)
 
         # ATTENTION: "ctx.files()" may differ from "repo[node].files()"
@@ -586,7 +587,6 @@
         # - have to be marked as "n" after commit, but
         # - aren't listed in "repo[node].files()"
 
-        lfdirstate = openlfdirstate(repo.ui, repo)
         for f in ctx.files():
             lfile = splitstandin(f)
             if lfile is not None:



To: marmoute, #hg-reviewers, pulkit
Cc: mercurial-patches
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mercurial-scm.org/pipermail/mercurial-patches/attachments/20210719/395522bf/attachment-0002.html>


More information about the Mercurial-patches mailing list