Mercurial > hg
changeset 50110:a860298776f0
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`.
author | Pierre-Yves David <pierre-yves.david@octobus.net> |
---|---|
date | Mon, 20 Feb 2023 11:37:05 +0100 |
parents | bec7182cc406 |
children | 0ca8dc8a135f |
files | hgext/largefiles/lfcommands.py |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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: