tests/test-topic-shelve.t
author Martin von Zweigbergk <martinvonz@google.com>
Thu, 24 Aug 2017 10:48:38 -0700
changeset 2857 0c286d054bcd
parent 2680 d5eb5269128a
child 2985 f63c97c01f92
permissions -rw-r--r--
warning: use 'divergent', not 'contentdivergent' on old Mercurial This was just an oversight in f6517779a7c4 (warning: rename warning message, 2017-08-24).

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)