# HG changeset patch # User Pierre-Yves David # Date 1671081743 -3600 # Node ID 1b044a63a98a9e6697de70426969bc7adcf4213d # Parent 9409f2946f16190877cc11c9d30a66bbe76aaa72 shelve: adjust what happens in some `changing_parents` context It seems like the rest is more about changing tracked_files, so we let start with moving them out of the `changing_parents` contexts. diff -r 9409f2946f16 -r 1b044a63a98a mercurial/shelve.py --- a/mercurial/shelve.py Mon Feb 13 23:29:30 2023 +0100 +++ b/mercurial/shelve.py Thu Dec 15 06:22:23 2022 +0100 @@ -871,9 +871,9 @@ with repo.ui.configoverride(overrides, b'unshelve'): with repo.dirstate.changing_parents(repo): repo.setparents(state.parents[0], repo.nullid) - newnode, ispartialunshelve = _createunshelvectx( - ui, repo, shelvectx, basename, interactive, opts - ) + newnode, ispartialunshelve = _createunshelvectx( + ui, repo, shelvectx, basename, interactive, opts + ) if newnode is None: shelvectx = state.pendingctx @@ -1070,9 +1070,9 @@ with repo.dirstate.changing_parents(repo): repo.setparents(tmpwctx.node(), repo.nullid) - newnode, ispartialunshelve = _createunshelvectx( - ui, repo, shelvectx, basename, interactive, opts - ) + newnode, ispartialunshelve = _createunshelvectx( + ui, repo, shelvectx, basename, interactive, opts + ) if newnode is None: shelvectx = tmpwctx