mercurial/shelve.py
changeset 50052 1b044a63a98a
parent 49960 7a8bfc05b691
child 50053 5327ae76b740
--- 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