view tests/test-states.t @ 27:31906bc290ff

Working directory is draft.
author Pierre-Yves David <pierre-yves.david@logilab.fr>
date Thu, 07 Jul 2011 11:10:05 +0200
parents c9da15600775
children 0918e3b54f0b
line wrap: on
line source


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

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