mercurial/shelve.py
changeset 42724 4814d993fe21
parent 42695 52a383451739
child 42725 073cfff9aaef
--- 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)