# HG changeset patch # User Pierre-Yves David # Date 2023-02-05 11:14:45 # Node ID e2f3cba678cea82497b34eefa40a42195548934f # Parent eed104af7401ba75c3c60d8d9841dee267c4e93a 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. diff --git a/hgext/largefiles/lfutil.py b/hgext/largefiles/lfutil.py --- a/hgext/largefiles/lfutil.py +++ b/hgext/largefiles/lfutil.py @@ -233,15 +233,14 @@ def openlfdirstate(ui, repo, create=True 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