diff --git a/hgext/largefiles/lfcommands.py b/hgext/largefiles/lfcommands.py --- a/hgext/largefiles/lfcommands.py +++ b/hgext/largefiles/lfcommands.py @@ -219,7 +219,8 @@ def lfconvert(ui, src, dest, *pats, **op 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