Mercurial > evolve
view tests/test-topic-shelve.t @ 2897:bd04a614b866
topic: move a status message in the right scope
The finally get runs on failure so we should not advertise rewrite topic in the
case. In addition the 'rewrote' variable can be undefined in the finally.
author | Pierre-Yves David <pierre-yves.david@octobus.net> |
---|---|
date | Fri, 01 Sep 2017 17:37:47 +0200 |
parents | d5eb5269128a |
children | f63c97c01f92 |
line wrap: on
line source
testing topic with shelve extension ------------------------------------ $ . "$TESTDIR/testlib/topic_setup.sh" $ hg init repo $ cd repo $ cat <<EOF >>.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)