view tests/test-states.t @ 51:d98e06ab8320

move extensions in a hgext directory
author Pierre-Yves David <pierre-yves.david@logilab.fr>
date Thu, 08 Sep 2011 17:15:20 +0200
parents 0918e3b54f0b
children a5f6194eb05c
line wrap: on
line source


  $ 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