# HG changeset patch # User Pierre-Yves David # Date 1676327370 -3600 # Node ID 9409f2946f16190877cc11c9d30a66bbe76aaa72 # Parent 22cd517bc6b023db56450a1302b403702d270512 dirstate: use `dirstate.change_files` to scope the change in `lfconvert` This is the way. diff -r 22cd517bc6b0 -r 9409f2946f16 hgext/largefiles/lfcommands.py --- a/hgext/largefiles/lfcommands.py Sun Feb 05 12:09:52 2023 +0100 +++ b/hgext/largefiles/lfcommands.py Mon Feb 13 23:29:30 2023 +0100 @@ -219,7 +219,8 @@ success = True finally: if tolfile: - rdst.dirstate.clear() + with rdst.dirstate.changing_files(rdst): + rdst.dirstate.clear() release(dstlock, dstwlock) if not success: # we failed, remove the new directory