tests/test-states.t
changeset 110 6d461c2143a0
parent 109 a2e8057117d3
child 111 ab4cef4fbd03
equal deleted inserted replaced
109:a2e8057117d3 110:6d461c2143a0
     1 
       
     2   $ cat >> $HGRCPATH <<EOF
       
     3   > [web]
       
     4   > push_ssl = false
       
     5   > allow_push = *
       
     6   > [extensions]
       
     7   > EOF
       
     8   $ echo "states=$(echo $(dirname $TESTDIR))/hgext/states.py" >> $HGRCPATH
       
     9 
       
    10   $ hg init local
       
    11   $ hg init other
       
    12   $ cd local
       
    13   $ hg states --traceback -v
       
    14   published
       
    15   $ hg states draft
       
    16   $ hg states
       
    17   published
       
    18   draft
       
    19   $ hg states ready
       
    20   $ hg states
       
    21   published
       
    22   ready
       
    23   draft
       
    24   $ hg states --off draft
       
    25   $ hg states
       
    26   published
       
    27   ready
       
    28   $ hg states babar
       
    29   no state named babar
       
    30   [1]
       
    31   $ echo 'babar' >> .hg/states/Enabled
       
    32   $ hg states
       
    33   published
       
    34   ready
       
    35   $ hg -R ../other states
       
    36   published
       
    37 
       
    38 do nothing if state already deactivated
       
    39   $ hg states --off draft
       
    40   state draft already deactivated
       
    41   $ hg states
       
    42   published
       
    43   ready