annotate 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
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
c9da15600775 add a states command
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents:
diff changeset
8 $ echo "states=$(echo $(dirname $TESTDIR))/states.py" >> $HGRCPATH
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