--- a/mercurial/shelve.py Tue Aug 06 14:54:25 2019 +0200
+++ b/mercurial/shelve.py Wed Jul 24 18:15:27 2019 +0530
@@ -747,10 +747,10 @@
mergefiles(ui, repo, state.wctx, shelvectx)
restorebranch(ui, repo, state.branchtorestore)
+ if not phases.supportinternal(repo):
+ repair.strip(ui, repo, state.nodestoremove, backup=False,
+ topic='shelve')
if not ispartialunshelve:
- if not phases.supportinternal(repo):
- repair.strip(ui, repo, state.nodestoremove, backup=False,
- topic='shelve')
shelvedstate.clear(repo)
unshelvecleanup(ui, repo, state.name, opts)
_restoreactivebookmark(repo, state.activebookmark)