# HG changeset patch # User Pierre-Yves David # Date 1676889425 -3600 # Node ID a860298776f04d61b2861b3ffcfc6d9d1a5b769a # Parent bec7182cc4065f9ab305a0e1031cfe3ac18a94c6 lfconvert: use a `changing_parents` context to clear the dirstate Not sure if this is the right context, but it works and it is consistent with the other usages of `dirstate.clear`. diff -r bec7182cc406 -r a860298776f0 hgext/largefiles/lfcommands.py --- a/hgext/largefiles/lfcommands.py Mon Feb 20 11:57:46 2023 +0100 +++ b/hgext/largefiles/lfcommands.py Mon Feb 20 11:37:05 2023 +0100 @@ -219,7 +219,8 @@ success = True finally: if tolfile: - with rdst.dirstate.changing_files(rdst): + # XXX is this the right context semantically ? + with rdst.dirstate.changing_parents(rdst): rdst.dirstate.clear() release(dstlock, dstwlock) if not success: