hgext/largefiles/overrides.py
changeset 49959 c166b212bdee
parent 49910 7b474609f199
child 49960 7a8bfc05b691
--- a/hgext/largefiles/overrides.py	Tue Dec 13 10:00:04 2022 +0100
+++ b/hgext/largefiles/overrides.py	Wed Jan 25 18:46:20 2023 +0100
@@ -660,7 +660,7 @@
 def mergerecordupdates(orig, repo, actions, branchmerge, getfiledata):
     if MERGE_ACTION_LARGEFILE_MARK_REMOVED in actions:
         lfdirstate = lfutil.openlfdirstate(repo.ui, repo)
-        with lfdirstate.parentchange():
+        with lfdirstate.parentchange(repo):
             for lfile, args, msg in actions[
                 MERGE_ACTION_LARGEFILE_MARK_REMOVED
             ]:
@@ -1800,7 +1800,7 @@
             raise error.ProgrammingError(
                 b'largefiles is not compatible with in-memory merge'
             )
-        with lfdirstate.parentchange():
+        with lfdirstate.parentchange(repo):
             result = orig(repo, node, branchmerge, force, *args, **kwargs)
 
             newstandins = lfutil.getstandinsstate(repo)