# HG changeset patch # User Pulkit Goyal <7895pulkit@gmail.com> # Date 1498675267 -19800 # Node ID d5eb5269128ac9bfd3d52f0008a066134bd5b71d # Parent 5156a67f66a6cc8fa73d1a2ad28e0608508ca2bc tests: add test to show topics working with shelve diff -r 5156a67f66a6 -r d5eb5269128a tests/test-topic-shelve.t --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/tests/test-topic-shelve.t Thu Jun 29 00:11:07 2017 +0530 @@ -0,0 +1,50 @@ +testing topic with shelve extension +------------------------------------ + + $ . "$TESTDIR/testlib/topic_setup.sh" + + $ hg init repo + $ cd repo + $ cat <>.hg/hgrc + > [extensions] + > shelve= + > EOF + + $ touch a + $ echo "Hello" >> a + $ hg topic "testing-shelve" + $ hg topic + * testing-shelve + $ hg ci -m "First commit" -A + adding a + $ hg topic + * testing-shelve + $ echo " World" >> a + $ hg stack + ### topic: testing-shelve + ### branch: default + t1@ First commit (current) + +shelve test +----------- + + $ hg shelve + shelved as default + 1 files updated, 0 files merged, 0 files removed, 0 files unresolved + $ hg topic + * testing-shelve + $ hg stack + ### topic: testing-shelve + ### branch: default + t1@ First commit (current) + +unshelve test +------------- + $ hg unshelve + unshelving change 'default' + $ hg topic + * testing-shelve + $ hg stack + ### topic: testing-shelve + ### branch: default + t1@ First commit (current)