diff mercurial/cmdutil.py @ 42616:5162753c4c14

unshelve: add interactive mode Until now, there is no way to `unshelve` selected changes only from the stored shelve as given in issue6162. This patch makes `unshelve` perform with certain changes only by adding an interactive mode. Differential Revision: https://phab.mercurial-scm.org/D6596
author Navaneeth Suresh <navaneeths1998@gmail.com>
date Tue, 02 Jul 2019 18:02:12 +0530
parents 5171937ad0f9
children ce52377102db
line wrap: on
line diff
--- a/mercurial/cmdutil.py	Sun Jul 07 10:54:41 2019 -0400
+++ b/mercurial/cmdutil.py	Tue Jul 02 18:02:12 2019 +0530
@@ -266,8 +266,8 @@
         In the end we'll record interesting changes, and everything else
         will be left in place, so the user can continue working.
         """
-
-        checkunfinished(repo, commit=True)
+        if not opts.get('interactive-unshelve'):
+            checkunfinished(repo, commit=True)
         wctx = repo[None]
         merge = len(wctx.parents()) > 1
         if merge: