tests/test-states.t
author Pierre-Yves David <pierre-yves.david@logilab.fr>
Thu, 08 Sep 2011 17:15:20 +0200
changeset 51 d98e06ab8320
parent 28 0918e3b54f0b
child 90 a5f6194eb05c
permissions -rw-r--r--
move extensions in a hgext directory


  $ 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