view tests/test-states.t @ 44:b243c10a5fbe

Add pushkey support for pull and push
author Pierre-Yves David <pierre-yves.david@logilab.fr>
date Thu, 08 Sep 2011 12:01:38 +0200
parents 0918e3b54f0b
children d98e06ab8320
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
  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