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`.
--- 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: