From patchwork Tue Aug 6 17:07:16 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: D6699: tests: add test for unshelve --interactive --keep From: phabricator X-Patchwork-Id: 41185 Message-Id: To: Phabricator Cc: mercurial-devel@mercurial-scm.org Date: Tue, 6 Aug 2019 17:07:16 +0000 navaneeth.suresh updated this revision to Diff 16145. REPOSITORY rHG Mercurial CHANGES SINCE LAST UPDATE https://phab.mercurial-scm.org/D6699?vs=16131&id=16145 CHANGES SINCE LAST ACTION https://phab.mercurial-scm.org/D6699/new/ REVISION DETAIL https://phab.mercurial-scm.org/D6699 AFFECTED FILES tests/test-shelve.t CHANGE DETAILS To: navaneeth.suresh, #hg-reviewers Cc: pulkit, mercurial-devel diff --git a/tests/test-shelve.t b/tests/test-shelve.t --- a/tests/test-shelve.t +++ b/tests/test-shelve.t @@ -1451,3 +1451,33 @@ record this change to 'bar2'? (enter ? for help) [Ynesfdaq?] y +-- test for unshelve --interactive --keep + $ hg unshelve -i --keep < y + > y + > EOF + unshelving change 'default' + temporarily committing pending changes (restore with 'hg unshelve --abort') + rebasing shelved changes + diff --git a/foo b/foo + 1 hunks, 1 lines changed + examine changes to 'foo'? + (enter ? for help) [Ynesfdaq?] y + + @@ -1,2 +1,3 @@ + A + B + +C + record this change to 'foo'? + (enter ? for help) [Ynesfdaq?] y + + $ hg shelve --patch + default (*)* changes to: add B to foo (glob) + + diff --git a/foo b/foo + --- a/foo + +++ b/foo + @@ -1,2 +1,3 @@ + A + B + +C