diff hgext/largefiles/lfcommands.py @ 49960:c166b212bdee

dirstate: pass the repo to the `changeparent` method If we want the context to be responsible for writing (and we want it), we need to have access to a localrepository object. So we now requires a localrepository object as an argument to this context manager.
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Wed, 25 Jan 2023 18:46:20 +0100
parents 2e726c934fcd
children 7a8bfc05b691
line wrap: on
line diff
--- a/hgext/largefiles/lfcommands.py	Tue Dec 13 10:00:04 2022 +0100
+++ b/hgext/largefiles/lfcommands.py	Wed Jan 25 18:46:20 2023 +0100
@@ -517,7 +517,7 @@
             filelist = set(filelist)
             lfiles = [f for f in lfiles if f in filelist]
 
-        with lfdirstate.parentchange():
+        with lfdirstate.parentchange(repo):
             update = {}
             dropped = set()
             updated, removed = 0, 0
@@ -580,7 +580,7 @@
             statuswriter(_(b'getting changed largefiles\n'))
             cachelfiles(ui, repo, None, lfiles)
 
-        with lfdirstate.parentchange():
+        with lfdirstate.parentchange(repo):
             for lfile in lfiles:
                 update1 = 0