tests/test-states.t
author Alain Leufroy <alain.leufroy@logilab.fr>
Tue, 27 Sep 2011 11:25:13 +0200
changeset 99 67a3aa020d91
parent 90 a5f6194eb05c
permissions -rw-r--r--
[states] fix strip but a case still does not work (see test test-state-strip.t)


  $ cat >> $HGRCPATH <<EOF
  > [web]
  > push_ssl = false
  > allow_push = *
  > [extensions]
  > EOF
  $ echo "states=$(echo $(dirname $TESTDIR))/hgext/states.py" >> $HGRCPATH

  $ hg init local
  $ hg init other
  $ cd local
  $ hg states --traceback -v
  published
  $ hg states draft
  $ hg states
  published
  draft
  $ hg states ready
  $ hg states
  published
  ready
  draft
  $ hg states --off draft
  $ hg states
  published
  ready
  $ hg states babar
  no state named babar
  [1]
  $ echo 'babar' >> .hg/states/Enabled
  $ hg states
  published
  ready
  $ hg -R ../other states
  published

do nothing if state already deactivated
  $ hg states --off draft
  state draft already deactivated
  $ hg states
  published
  ready