view tests/test-topic-shelve.t @ 5533:044ce00dfa88 stable

tests: use the modern config setting to enable evolution in topic tests When adding `hg pick --config extensions.evolve=` to test-topic-dest.t to investigate issue6406, it failed with `abort: unknown command 'pick'`. This is a manifestation of issue6039. I made several attempts at determining the root cause, and while I'm still worried about *why* a config setting can cause the extension to fail to fully initialize, there are some topic bugs to cleanup and I don't feel like spending more time on this.
author Matt Harbison <matt_harbison@yahoo.com>
date Sat, 05 Sep 2020 00:07:01 -0400
parents fb4801478d5d
children 9da0114a8a02
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"
  marked working directory as topic: testing-shelve
  $ hg topic
   * testing-shelve (0 changesets)
  $ hg ci -m "First commit" -A
  adding a
  active topic 'testing-shelve' grew its first changeset
  (see 'hg help topics' for more information)
  $ hg topic
   * testing-shelve (1 changesets)
  $ echo " World" >> a
  $ hg stack
  ### topic: testing-shelve
  ### target: default (branch)
  s1@ 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 (1 changesets)
  $ hg stack
  ### topic: testing-shelve
  ### target: default (branch)
  s1@ First commit (current)

unshelve test
-------------
  $ hg unshelve
  unshelving change 'default'
  $ hg topic
   * testing-shelve (1 changesets)
  $ hg stack
  ### topic: testing-shelve
  ### target: default (branch)
  s1@ First commit (current)