changeset 50020:e2f3cba678ce

largefiles: remove the `changing_parents` context in `openlfdirstate` This code might run in any kind of change context, we should rely on the higher level context instead of opening our own.
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Sun, 05 Feb 2023 12:14:45 +0100
parents eed104af7401
children 4e955a7a6a55
files hgext/largefiles/lfutil.py
diffstat 1 files changed, 8 insertions(+), 9 deletions(-) [+]
line wrap: on
line diff
--- a/hgext/largefiles/lfutil.py	Wed Feb 15 00:57:16 2023 +0100
+++ b/hgext/largefiles/lfutil.py	Sun Feb 05 12:14:45 2023 +0100
@@ -233,15 +233,14 @@
                 if len(standins) > 0:
                     vfs.makedirs(lfstoredir)
 
-                with lfdirstate.changing_parents(repo):
-                    for standin in standins:
-                        lfile = splitstandin(standin)
-                        lfdirstate.hacky_extension_update_file(
-                            lfile,
-                            p1_tracked=True,
-                            wc_tracked=True,
-                            possibly_dirty=True,
-                        )
+                for standin in standins:
+                    lfile = splitstandin(standin)
+                    lfdirstate.hacky_extension_update_file(
+                        lfile,
+                        p1_tracked=True,
+                        wc_tracked=True,
+                        possibly_dirty=True,
+                    )
         except error.LockError:
             # Assume that whatever was holding the lock was important.
             # If we were doing something important, we would already have