annotate tests/test-states.t @ 108:85271a8a7fb9

Properly inherit phase of relocated changeset.
author Pierre-Yves David <pierre-yves.david@logilab.fr>
date Mon, 19 Dec 2011 12:18:04 +0100
parents a5f6194eb05c
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
26
c9da15600775 add a states command
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents:
diff changeset
1
c9da15600775 add a states command
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents:
diff changeset
2 $ cat >> $HGRCPATH <<EOF
c9da15600775 add a states command
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents:
diff changeset
3 > [web]
c9da15600775 add a states command
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents:
diff changeset
4 > push_ssl = false
c9da15600775 add a states command
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents:
diff changeset
5 > allow_push = *
c9da15600775 add a states command
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents:
diff changeset
6 > [extensions]
c9da15600775 add a states command
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents:
diff changeset
7 > EOF
51
d98e06ab8320 move extensions in a hgext directory
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents: 28
diff changeset
8 $ echo "states=$(echo $(dirname $TESTDIR))/hgext/states.py" >> $HGRCPATH
26
c9da15600775 add a states command
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents:
diff changeset
9
c9da15600775 add a states command
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents:
diff changeset
10 $ hg init local
c9da15600775 add a states command
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents:
diff changeset
11 $ hg init other
c9da15600775 add a states command
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents:
diff changeset
12 $ cd local
c9da15600775 add a states command
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents:
diff changeset
13 $ hg states --traceback -v
28
0918e3b54f0b published is always enabled.
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents: 26
diff changeset
14 published
26
c9da15600775 add a states command
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents:
diff changeset
15 $ hg states draft
c9da15600775 add a states command
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents:
diff changeset
16 $ hg states
28
0918e3b54f0b published is always enabled.
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents: 26
diff changeset
17 published
26
c9da15600775 add a states command
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents:
diff changeset
18 draft
c9da15600775 add a states command
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents:
diff changeset
19 $ hg states ready
c9da15600775 add a states command
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents:
diff changeset
20 $ hg states
28
0918e3b54f0b published is always enabled.
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents: 26
diff changeset
21 published
26
c9da15600775 add a states command
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents:
diff changeset
22 ready
c9da15600775 add a states command
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents:
diff changeset
23 draft
c9da15600775 add a states command
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents:
diff changeset
24 $ hg states --off draft
c9da15600775 add a states command
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents:
diff changeset
25 $ hg states
28
0918e3b54f0b published is always enabled.
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents: 26
diff changeset
26 published
26
c9da15600775 add a states command
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents:
diff changeset
27 ready
c9da15600775 add a states command
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents:
diff changeset
28 $ hg states babar
c9da15600775 add a states command
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents:
diff changeset
29 no state named babar
c9da15600775 add a states command
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents:
diff changeset
30 [1]
c9da15600775 add a states command
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents:
diff changeset
31 $ echo 'babar' >> .hg/states/Enabled
c9da15600775 add a states command
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents:
diff changeset
32 $ hg states
28
0918e3b54f0b published is always enabled.
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents: 26
diff changeset
33 published
26
c9da15600775 add a states command
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents:
diff changeset
34 ready
c9da15600775 add a states command
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents:
diff changeset
35 $ hg -R ../other states
28
0918e3b54f0b published is always enabled.
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents: 26
diff changeset
36 published
26
c9da15600775 add a states command
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents:
diff changeset
37
90
a5f6194eb05c [states] do not activate deactivated state with ``hg states --off <state>``
Alain Leufroy <alain.leufroy@logilab.fr>
parents: 51
diff changeset
38 do nothing if state already deactivated
a5f6194eb05c [states] do not activate deactivated state with ``hg states --off <state>``
Alain Leufroy <alain.leufroy@logilab.fr>
parents: 51
diff changeset
39 $ hg states --off draft
a5f6194eb05c [states] do not activate deactivated state with ``hg states --off <state>``
Alain Leufroy <alain.leufroy@logilab.fr>
parents: 51
diff changeset
40 state draft already deactivated
a5f6194eb05c [states] do not activate deactivated state with ``hg states --off <state>``
Alain Leufroy <alain.leufroy@logilab.fr>
parents: 51
diff changeset
41 $ hg states
a5f6194eb05c [states] do not activate deactivated state with ``hg states --off <state>``
Alain Leufroy <alain.leufroy@logilab.fr>
parents: 51
diff changeset
42 published
a5f6194eb05c [states] do not activate deactivated state with ``hg states --off <state>``
Alain Leufroy <alain.leufroy@logilab.fr>
parents: 51
diff changeset
43 ready