author | Pierre-Yves David <pierre-yves.david@logilab.fr> |
Tue, 11 Oct 2011 19:22:41 +0200 | |
changeset 103 | 23c232a81fbe |
parent 98 | 8ad5c760c708 |
permissions | -rw-r--r-- |
0
bbeef801409c
minimalistic state concept.
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents:
diff
changeset
|
1 |
$ cat >> $HGRCPATH <<EOF |
7
cc592295900f
Add write protocol support for private.
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents:
6
diff
changeset
|
2 |
> [web] |
cc592295900f
Add write protocol support for private.
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents:
6
diff
changeset
|
3 |
> push_ssl = false |
cc592295900f
Add write protocol support for private.
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents:
6
diff
changeset
|
4 |
> allow_push = * |
0
bbeef801409c
minimalistic state concept.
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents:
diff
changeset
|
5 |
> [extensions] |
bbeef801409c
minimalistic state concept.
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents:
diff
changeset
|
6 |
> EOF |
51
d98e06ab8320
move extensions in a hgext directory
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents:
26
diff
changeset
|
7 |
$ echo "states=$(echo $(dirname $TESTDIR))/hgext/states.py" >> $HGRCPATH |
0
bbeef801409c
minimalistic state concept.
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents:
diff
changeset
|
8 |
|
1
beabde937e36
Add "private" concept (2). private changeset are hiden suppose to be hidden for
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents:
0
diff
changeset
|
9 |
$ hg init local |
beabde937e36
Add "private" concept (2). private changeset are hiden suppose to be hidden for
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents:
0
diff
changeset
|
10 |
$ hg init remote1 |
beabde937e36
Add "private" concept (2). private changeset are hiden suppose to be hidden for
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents:
0
diff
changeset
|
11 |
$ hg init remote2 |
beabde937e36
Add "private" concept (2). private changeset are hiden suppose to be hidden for
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents:
0
diff
changeset
|
12 |
$ cd local |
0
bbeef801409c
minimalistic state concept.
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents:
diff
changeset
|
13 |
$ echo "celestine" > babar |
bbeef801409c
minimalistic state concept.
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents:
diff
changeset
|
14 |
$ hg add babar |
bbeef801409c
minimalistic state concept.
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents:
diff
changeset
|
15 |
$ hg ci -m "add babar" |
1
beabde937e36
Add "private" concept (2). private changeset are hiden suppose to be hidden for
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents:
0
diff
changeset
|
16 |
$ echo "la veille dame" > babar |
beabde937e36
Add "private" concept (2). private changeset are hiden suppose to be hidden for
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents:
0
diff
changeset
|
17 |
$ hg ci -m "add dame" |
beabde937e36
Add "private" concept (2). private changeset are hiden suppose to be hidden for
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents:
0
diff
changeset
|
18 |
$ hg log --template='{rev}:{node|short}: {state}\n' |
10
91169d2d7f1b
state are now object.
Pierre-Yves David <pierre-yves.david@ens-lyon.org>
parents:
9
diff
changeset
|
19 |
1:710fe444b3b0: published |
91169d2d7f1b
state are now object.
Pierre-Yves David <pierre-yves.david@ens-lyon.org>
parents:
9
diff
changeset
|
20 |
0:5caa672bac26: published |
1
beabde937e36
Add "private" concept (2). private changeset are hiden suppose to be hidden for
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents:
0
diff
changeset
|
21 |
$ hg out ../remote1 --template='{rev}:{node|short}\n' |
beabde937e36
Add "private" concept (2). private changeset are hiden suppose to be hidden for
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents:
0
diff
changeset
|
22 |
comparing with ../remote1 |
beabde937e36
Add "private" concept (2). private changeset are hiden suppose to be hidden for
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents:
0
diff
changeset
|
23 |
searching for changes |
beabde937e36
Add "private" concept (2). private changeset are hiden suppose to be hidden for
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents:
0
diff
changeset
|
24 |
0:5caa672bac26 |
beabde937e36
Add "private" concept (2). private changeset are hiden suppose to be hidden for
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents:
0
diff
changeset
|
25 |
1:710fe444b3b0 |
beabde937e36
Add "private" concept (2). private changeset are hiden suppose to be hidden for
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents:
0
diff
changeset
|
26 |
$ hg push ../remote1 |
beabde937e36
Add "private" concept (2). private changeset are hiden suppose to be hidden for
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents:
0
diff
changeset
|
27 |
pushing to ../remote1 |
beabde937e36
Add "private" concept (2). private changeset are hiden suppose to be hidden for
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents:
0
diff
changeset
|
28 |
searching for changes |
beabde937e36
Add "private" concept (2). private changeset are hiden suppose to be hidden for
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents:
0
diff
changeset
|
29 |
adding changesets |
beabde937e36
Add "private" concept (2). private changeset are hiden suppose to be hidden for
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents:
0
diff
changeset
|
30 |
adding manifests |
beabde937e36
Add "private" concept (2). private changeset are hiden suppose to be hidden for
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents:
0
diff
changeset
|
31 |
adding file changes |
beabde937e36
Add "private" concept (2). private changeset are hiden suppose to be hidden for
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents:
0
diff
changeset
|
32 |
added 2 changesets with 2 changes to 1 files |
3 | 33 |
$ echo "tree" >> savanna |
2
166694e62daf
hide private changeset to inc and pull.
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents:
1
diff
changeset
|
34 |
$ hg add savanna |
166694e62daf
hide private changeset to inc and pull.
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents:
1
diff
changeset
|
35 |
$ hg ci -m "terrain" |
1
beabde937e36
Add "private" concept (2). private changeset are hiden suppose to be hidden for
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents:
0
diff
changeset
|
36 |
$ echo "flore" >> babar |
beabde937e36
Add "private" concept (2). private changeset are hiden suppose to be hidden for
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents:
0
diff
changeset
|
37 |
$ hg ci -m "children" |
beabde937e36
Add "private" concept (2). private changeset are hiden suppose to be hidden for
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents:
0
diff
changeset
|
38 |
$ hg log --template='{rev}:{node|short}: {state}\n' |
10
91169d2d7f1b
state are now object.
Pierre-Yves David <pierre-yves.david@ens-lyon.org>
parents:
9
diff
changeset
|
39 |
3:73585b17392a: published |
91169d2d7f1b
state are now object.
Pierre-Yves David <pierre-yves.david@ens-lyon.org>
parents:
9
diff
changeset
|
40 |
2:3c8695235a32: published |
91169d2d7f1b
state are now object.
Pierre-Yves David <pierre-yves.david@ens-lyon.org>
parents:
9
diff
changeset
|
41 |
1:710fe444b3b0: published |
91169d2d7f1b
state are now object.
Pierre-Yves David <pierre-yves.david@ens-lyon.org>
parents:
9
diff
changeset
|
42 |
0:5caa672bac26: published |
0
bbeef801409c
minimalistic state concept.
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents:
diff
changeset
|
43 |
|
12
6312fc525a54
rename state related attributes
Pierre-Yves David <pierre-yves.david@ens-lyon.org>
parents:
10
diff
changeset
|
44 |
turn draft on (repo side) |
98
8ad5c760c708
[states] make enabling state saftier
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
97
diff
changeset
|
45 |
$ hg states --clever draft |
1
beabde937e36
Add "private" concept (2). private changeset are hiden suppose to be hidden for
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents:
0
diff
changeset
|
46 |
$ hg log --template='{rev}:{node|short}: {state}\n' |
10
91169d2d7f1b
state are now object.
Pierre-Yves David <pierre-yves.david@ens-lyon.org>
parents:
9
diff
changeset
|
47 |
3:73585b17392a: draft |
91169d2d7f1b
state are now object.
Pierre-Yves David <pierre-yves.david@ens-lyon.org>
parents:
9
diff
changeset
|
48 |
2:3c8695235a32: draft |
91169d2d7f1b
state are now object.
Pierre-Yves David <pierre-yves.david@ens-lyon.org>
parents:
9
diff
changeset
|
49 |
1:710fe444b3b0: published |
91169d2d7f1b
state are now object.
Pierre-Yves David <pierre-yves.david@ens-lyon.org>
parents:
9
diff
changeset
|
50 |
0:5caa672bac26: published |
2
166694e62daf
hide private changeset to inc and pull.
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents:
1
diff
changeset
|
51 |
|
166694e62daf
hide private changeset to inc and pull.
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents:
1
diff
changeset
|
52 |
test outgoing and push |
1
beabde937e36
Add "private" concept (2). private changeset are hiden suppose to be hidden for
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents:
0
diff
changeset
|
53 |
$ hg out ../remote1 --template='{rev}:{node|short}\n' |
beabde937e36
Add "private" concept (2). private changeset are hiden suppose to be hidden for
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents:
0
diff
changeset
|
54 |
comparing with ../remote1 |
beabde937e36
Add "private" concept (2). private changeset are hiden suppose to be hidden for
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents:
0
diff
changeset
|
55 |
searching for changes |
beabde937e36
Add "private" concept (2). private changeset are hiden suppose to be hidden for
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents:
0
diff
changeset
|
56 |
no changes found |
beabde937e36
Add "private" concept (2). private changeset are hiden suppose to be hidden for
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents:
0
diff
changeset
|
57 |
[1] |
21
aa0870d093b8
Add pull and push support for relevant heads.
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents:
15
diff
changeset
|
58 |
$ hg push --traceback ../remote1 |
1
beabde937e36
Add "private" concept (2). private changeset are hiden suppose to be hidden for
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents:
0
diff
changeset
|
59 |
pushing to ../remote1 |
beabde937e36
Add "private" concept (2). private changeset are hiden suppose to be hidden for
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents:
0
diff
changeset
|
60 |
searching for changes |
beabde937e36
Add "private" concept (2). private changeset are hiden suppose to be hidden for
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents:
0
diff
changeset
|
61 |
no changes found |
beabde937e36
Add "private" concept (2). private changeset are hiden suppose to be hidden for
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents:
0
diff
changeset
|
62 |
|
beabde937e36
Add "private" concept (2). private changeset are hiden suppose to be hidden for
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents:
0
diff
changeset
|
63 |
$ hg out ../remote2 --template='{rev}:{node|short}\n' |
beabde937e36
Add "private" concept (2). private changeset are hiden suppose to be hidden for
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents:
0
diff
changeset
|
64 |
comparing with ../remote2 |
beabde937e36
Add "private" concept (2). private changeset are hiden suppose to be hidden for
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents:
0
diff
changeset
|
65 |
searching for changes |
beabde937e36
Add "private" concept (2). private changeset are hiden suppose to be hidden for
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents:
0
diff
changeset
|
66 |
0:5caa672bac26 |
beabde937e36
Add "private" concept (2). private changeset are hiden suppose to be hidden for
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents:
0
diff
changeset
|
67 |
1:710fe444b3b0 |
beabde937e36
Add "private" concept (2). private changeset are hiden suppose to be hidden for
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents:
0
diff
changeset
|
68 |
$ hg push ../remote2 |
beabde937e36
Add "private" concept (2). private changeset are hiden suppose to be hidden for
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents:
0
diff
changeset
|
69 |
pushing to ../remote2 |
beabde937e36
Add "private" concept (2). private changeset are hiden suppose to be hidden for
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents:
0
diff
changeset
|
70 |
searching for changes |
beabde937e36
Add "private" concept (2). private changeset are hiden suppose to be hidden for
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents:
0
diff
changeset
|
71 |
adding changesets |
beabde937e36
Add "private" concept (2). private changeset are hiden suppose to be hidden for
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents:
0
diff
changeset
|
72 |
adding manifests |
beabde937e36
Add "private" concept (2). private changeset are hiden suppose to be hidden for
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents:
0
diff
changeset
|
73 |
adding file changes |
beabde937e36
Add "private" concept (2). private changeset are hiden suppose to be hidden for
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents:
0
diff
changeset
|
74 |
added 2 changesets with 2 changes to 1 files |
beabde937e36
Add "private" concept (2). private changeset are hiden suppose to be hidden for
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents:
0
diff
changeset
|
75 |
|
12
6312fc525a54
rename state related attributes
Pierre-Yves David <pierre-yves.david@ens-lyon.org>
parents:
10
diff
changeset
|
76 |
turn draft off again (repo side) |
26
c9da15600775
add a states command
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents:
24
diff
changeset
|
77 |
$ hg states --off draft |
97
e672cb1263cb
[states] make disabling state saftier
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
51
diff
changeset
|
78 |
abort: could not disable non empty state draft |
e672cb1263cb
[states] make disabling state saftier
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
51
diff
changeset
|
79 |
(You may want to use `hg published 'draftheads()'`) |
e672cb1263cb
[states] make disabling state saftier
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
51
diff
changeset
|
80 |
[255] |
e672cb1263cb
[states] make disabling state saftier
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
51
diff
changeset
|
81 |
$ hg published tip |
2
166694e62daf
hide private changeset to inc and pull.
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents:
1
diff
changeset
|
82 |
$ hg log --template='{rev}:{node|short}: {state}\n' |
10
91169d2d7f1b
state are now object.
Pierre-Yves David <pierre-yves.david@ens-lyon.org>
parents:
9
diff
changeset
|
83 |
3:73585b17392a: published |
91169d2d7f1b
state are now object.
Pierre-Yves David <pierre-yves.david@ens-lyon.org>
parents:
9
diff
changeset
|
84 |
2:3c8695235a32: published |
91169d2d7f1b
state are now object.
Pierre-Yves David <pierre-yves.david@ens-lyon.org>
parents:
9
diff
changeset
|
85 |
1:710fe444b3b0: published |
91169d2d7f1b
state are now object.
Pierre-Yves David <pierre-yves.david@ens-lyon.org>
parents:
9
diff
changeset
|
86 |
0:5caa672bac26: published |
2
166694e62daf
hide private changeset to inc and pull.
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents:
1
diff
changeset
|
87 |
$ hg out ../remote1 --template='{rev}:{node|short}\n' |
166694e62daf
hide private changeset to inc and pull.
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents:
1
diff
changeset
|
88 |
comparing with ../remote1 |
166694e62daf
hide private changeset to inc and pull.
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents:
1
diff
changeset
|
89 |
searching for changes |
3 | 90 |
2:3c8695235a32 |
91 |
3:73585b17392a |
|
2
166694e62daf
hide private changeset to inc and pull.
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents:
1
diff
changeset
|
92 |
|
12
6312fc525a54
rename state related attributes
Pierre-Yves David <pierre-yves.david@ens-lyon.org>
parents:
10
diff
changeset
|
93 |
turn draft on again (repo side) |
26
c9da15600775
add a states command
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents:
24
diff
changeset
|
94 |
$ hg states draft |
97
e672cb1263cb
[states] make disabling state saftier
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
51
diff
changeset
|
95 |
$ hg draft --exact 2 |
2
166694e62daf
hide private changeset to inc and pull.
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents:
1
diff
changeset
|
96 |
|
166694e62daf
hide private changeset to inc and pull.
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents:
1
diff
changeset
|
97 |
test incoming and pull |
166694e62daf
hide private changeset to inc and pull.
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents:
1
diff
changeset
|
98 |
|
166694e62daf
hide private changeset to inc and pull.
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents:
1
diff
changeset
|
99 |
$ hg init ../other1 |
166694e62daf
hide private changeset to inc and pull.
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents:
1
diff
changeset
|
100 |
$ cd ../other1 |
166694e62daf
hide private changeset to inc and pull.
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents:
1
diff
changeset
|
101 |
$ hg incoming ../local --template='{rev}:{node|short}\n' |
166694e62daf
hide private changeset to inc and pull.
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents:
1
diff
changeset
|
102 |
comparing with ../local |
166694e62daf
hide private changeset to inc and pull.
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents:
1
diff
changeset
|
103 |
0:5caa672bac26 |
166694e62daf
hide private changeset to inc and pull.
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents:
1
diff
changeset
|
104 |
1:710fe444b3b0 |
21
aa0870d093b8
Add pull and push support for relevant heads.
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents:
15
diff
changeset
|
105 |
$ hg pull ../local |
2
166694e62daf
hide private changeset to inc and pull.
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents:
1
diff
changeset
|
106 |
pulling from ../local |
166694e62daf
hide private changeset to inc and pull.
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents:
1
diff
changeset
|
107 |
requesting all changes |
166694e62daf
hide private changeset to inc and pull.
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents:
1
diff
changeset
|
108 |
adding changesets |
166694e62daf
hide private changeset to inc and pull.
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents:
1
diff
changeset
|
109 |
adding manifests |
166694e62daf
hide private changeset to inc and pull.
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents:
1
diff
changeset
|
110 |
adding file changes |
166694e62daf
hide private changeset to inc and pull.
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents:
1
diff
changeset
|
111 |
added 2 changesets with 2 changes to 1 files |
166694e62daf
hide private changeset to inc and pull.
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents:
1
diff
changeset
|
112 |
(run 'hg update' to get a working copy) |
8
e56e40db3225
stronger tests
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents:
7
diff
changeset
|
113 |
$ hg log --template='{rev}:{node|short}\n' |
e56e40db3225
stronger tests
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents:
7
diff
changeset
|
114 |
1:710fe444b3b0 |
e56e40db3225
stronger tests
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents:
7
diff
changeset
|
115 |
0:5caa672bac26 |
2
166694e62daf
hide private changeset to inc and pull.
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents:
1
diff
changeset
|
116 |
$ cd .. |
166694e62daf
hide private changeset to inc and pull.
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents:
1
diff
changeset
|
117 |
$ hg clone local other2 |
5 | 118 |
requesting all changes |
119 |
adding changesets |
|
120 |
adding manifests |
|
121 |
adding file changes |
|
122 |
added 2 changesets with 2 changes to 1 files |
|
2
166694e62daf
hide private changeset to inc and pull.
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents:
1
diff
changeset
|
123 |
updating to branch default |
166694e62daf
hide private changeset to inc and pull.
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents:
1
diff
changeset
|
124 |
1 files updated, 0 files merged, 0 files removed, 0 files unresolved |
3 | 125 |
$ hg -R other2 log --template='{rev}:{node|short}\n' |
126 |
1:710fe444b3b0 |
|
127 |
0:5caa672bac26 |
|
4 | 128 |
|
129 |
test on http |
|
130 |
||
131 |
$ hg -R local serve -p $HGPORT -d --pid-file=local.pid |
|
132 |
$ cat local.pid >> "$DAEMON_PIDS" |
|
7
cc592295900f
Add write protocol support for private.
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents:
6
diff
changeset
|
133 |
$ hg clone http://localhost:$HGPORT/ fromhttp |
cc592295900f
Add write protocol support for private.
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents:
6
diff
changeset
|
134 |
requesting all changes |
cc592295900f
Add write protocol support for private.
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents:
6
diff
changeset
|
135 |
adding changesets |
cc592295900f
Add write protocol support for private.
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents:
6
diff
changeset
|
136 |
adding manifests |
cc592295900f
Add write protocol support for private.
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents:
6
diff
changeset
|
137 |
adding file changes |
cc592295900f
Add write protocol support for private.
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents:
6
diff
changeset
|
138 |
added 2 changesets with 2 changes to 1 files |
cc592295900f
Add write protocol support for private.
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents:
6
diff
changeset
|
139 |
updating to branch default |
cc592295900f
Add write protocol support for private.
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents:
6
diff
changeset
|
140 |
1 files updated, 0 files merged, 0 files removed, 0 files unresolved |
cc592295900f
Add write protocol support for private.
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents:
6
diff
changeset
|
141 |
$ hg -R fromhttp log --template='{rev}:{node|short}\n' |
cc592295900f
Add write protocol support for private.
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents:
6
diff
changeset
|
142 |
1:710fe444b3b0 |
cc592295900f
Add write protocol support for private.
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents:
6
diff
changeset
|
143 |
0:5caa672bac26 |
cc592295900f
Add write protocol support for private.
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents:
6
diff
changeset
|
144 |
|
cc592295900f
Add write protocol support for private.
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents:
6
diff
changeset
|
145 |
$ hg init fromhttp2 |
cc592295900f
Add write protocol support for private.
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents:
6
diff
changeset
|
146 |
$ cd fromhttp2 |
cc592295900f
Add write protocol support for private.
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents:
6
diff
changeset
|
147 |
$ hg inc http://localhost:$HGPORT/ --template='{rev}:{node|short}\n' |
cc592295900f
Add write protocol support for private.
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents:
6
diff
changeset
|
148 |
comparing with http://localhost:$HGPORT/ |
cc592295900f
Add write protocol support for private.
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents:
6
diff
changeset
|
149 |
0:5caa672bac26 |
cc592295900f
Add write protocol support for private.
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents:
6
diff
changeset
|
150 |
1:710fe444b3b0 |
cc592295900f
Add write protocol support for private.
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents:
6
diff
changeset
|
151 |
$ hg pull http://localhost:$HGPORT/ |
cc592295900f
Add write protocol support for private.
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents:
6
diff
changeset
|
152 |
pulling from http://localhost:$HGPORT/ |
cc592295900f
Add write protocol support for private.
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents:
6
diff
changeset
|
153 |
requesting all changes |
cc592295900f
Add write protocol support for private.
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents:
6
diff
changeset
|
154 |
adding changesets |
cc592295900f
Add write protocol support for private.
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents:
6
diff
changeset
|
155 |
adding manifests |
cc592295900f
Add write protocol support for private.
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents:
6
diff
changeset
|
156 |
adding file changes |
cc592295900f
Add write protocol support for private.
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents:
6
diff
changeset
|
157 |
added 2 changesets with 2 changes to 1 files |
cc592295900f
Add write protocol support for private.
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents:
6
diff
changeset
|
158 |
(run 'hg update' to get a working copy) |
cc592295900f
Add write protocol support for private.
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents:
6
diff
changeset
|
159 |
$ hg log --template='{rev}:{node|short}\n' |
4 | 160 |
1:710fe444b3b0 |
161 |
0:5caa672bac26 |
|
7
cc592295900f
Add write protocol support for private.
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents:
6
diff
changeset
|
162 |
$ hg inc http://localhost:$HGPORT/ --template='{rev}:{node|short}\n' |
cc592295900f
Add write protocol support for private.
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents:
6
diff
changeset
|
163 |
comparing with http://localhost:$HGPORT/ |
cc592295900f
Add write protocol support for private.
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents:
6
diff
changeset
|
164 |
searching for changes |
cc592295900f
Add write protocol support for private.
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents:
6
diff
changeset
|
165 |
no changes found |
cc592295900f
Add write protocol support for private.
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents:
6
diff
changeset
|
166 |
[1] |
cc592295900f
Add write protocol support for private.
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents:
6
diff
changeset
|
167 |
|
12
6312fc525a54
rename state related attributes
Pierre-Yves David <pierre-yves.david@ens-lyon.org>
parents:
10
diff
changeset
|
168 |
turn draft off again (repo side) |
7
cc592295900f
Add write protocol support for private.
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents:
6
diff
changeset
|
169 |
$ cd .. |
cc592295900f
Add write protocol support for private.
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents:
6
diff
changeset
|
170 |
$ "$TESTDIR/killdaemons.py" |
26
c9da15600775
add a states command
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents:
24
diff
changeset
|
171 |
$ hg -R local states --off draft |
97
e672cb1263cb
[states] make disabling state saftier
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
51
diff
changeset
|
172 |
abort: could not disable non empty state draft |
e672cb1263cb
[states] make disabling state saftier
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
51
diff
changeset
|
173 |
(You may want to use `hg published 'draftheads()'`) |
e672cb1263cb
[states] make disabling state saftier
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
51
diff
changeset
|
174 |
[255] |
e672cb1263cb
[states] make disabling state saftier
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
51
diff
changeset
|
175 |
$ hg -R local published tip |
e672cb1263cb
[states] make disabling state saftier
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
51
diff
changeset
|
176 |
$ hg -R local states --off draft |
7
cc592295900f
Add write protocol support for private.
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents:
6
diff
changeset
|
177 |
$ hg -R local serve -p $HGPORT -d --pid-file=local.pid |
cc592295900f
Add write protocol support for private.
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents:
6
diff
changeset
|
178 |
$ cat local.pid >> "$DAEMON_PIDS" |
cc592295900f
Add write protocol support for private.
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents:
6
diff
changeset
|
179 |
$ cd fromhttp2 |
cc592295900f
Add write protocol support for private.
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents:
6
diff
changeset
|
180 |
|
cc592295900f
Add write protocol support for private.
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents:
6
diff
changeset
|
181 |
$ hg inc http://localhost:$HGPORT/ --template='{rev}:{node|short}\n' |
cc592295900f
Add write protocol support for private.
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents:
6
diff
changeset
|
182 |
comparing with http://localhost:$HGPORT/ |
cc592295900f
Add write protocol support for private.
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents:
6
diff
changeset
|
183 |
searching for changes |
cc592295900f
Add write protocol support for private.
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents:
6
diff
changeset
|
184 |
2:3c8695235a32 |
cc592295900f
Add write protocol support for private.
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents:
6
diff
changeset
|
185 |
3:73585b17392a |
cc592295900f
Add write protocol support for private.
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents:
6
diff
changeset
|
186 |
$ hg pull http://localhost:$HGPORT/ |
cc592295900f
Add write protocol support for private.
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents:
6
diff
changeset
|
187 |
pulling from http://localhost:$HGPORT/ |
cc592295900f
Add write protocol support for private.
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents:
6
diff
changeset
|
188 |
searching for changes |
cc592295900f
Add write protocol support for private.
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents:
6
diff
changeset
|
189 |
adding changesets |
cc592295900f
Add write protocol support for private.
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents:
6
diff
changeset
|
190 |
adding manifests |
cc592295900f
Add write protocol support for private.
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents:
6
diff
changeset
|
191 |
adding file changes |
cc592295900f
Add write protocol support for private.
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents:
6
diff
changeset
|
192 |
added 2 changesets with 2 changes to 2 files |
cc592295900f
Add write protocol support for private.
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents:
6
diff
changeset
|
193 |
(run 'hg update' to get a working copy) |
cc592295900f
Add write protocol support for private.
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents:
6
diff
changeset
|
194 |
$ cd .. |
cc592295900f
Add write protocol support for private.
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents:
6
diff
changeset
|
195 |
$ "$TESTDIR/killdaemons.py" |
cc592295900f
Add write protocol support for private.
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents:
6
diff
changeset
|
196 |
|
12
6312fc525a54
rename state related attributes
Pierre-Yves David <pierre-yves.david@ens-lyon.org>
parents:
10
diff
changeset
|
197 |
turn draft on again (repo side) |
26
c9da15600775
add a states command
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents:
24
diff
changeset
|
198 |
$ hg -R local states draft |
7
cc592295900f
Add write protocol support for private.
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents:
6
diff
changeset
|
199 |
$ hg init httpto |
cc592295900f
Add write protocol support for private.
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents:
6
diff
changeset
|
200 |
$ hg -R httpto serve -p $HGPORT -d --pid-file=remote.pid |
cc592295900f
Add write protocol support for private.
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents:
6
diff
changeset
|
201 |
$ cat remote.pid >> "$DAEMON_PIDS" |
cc592295900f
Add write protocol support for private.
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents:
6
diff
changeset
|
202 |
$ cd local |
cc592295900f
Add write protocol support for private.
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents:
6
diff
changeset
|
203 |
$ hg out http://localhost:$HGPORT/ --template='{rev}:{node|short}\n' |
cc592295900f
Add write protocol support for private.
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents:
6
diff
changeset
|
204 |
comparing with http://localhost:$HGPORT/ |
cc592295900f
Add write protocol support for private.
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents:
6
diff
changeset
|
205 |
searching for changes |
cc592295900f
Add write protocol support for private.
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents:
6
diff
changeset
|
206 |
0:5caa672bac26 |
cc592295900f
Add write protocol support for private.
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents:
6
diff
changeset
|
207 |
1:710fe444b3b0 |
97
e672cb1263cb
[states] make disabling state saftier
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
51
diff
changeset
|
208 |
2:3c8695235a32 |
e672cb1263cb
[states] make disabling state saftier
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
51
diff
changeset
|
209 |
3:73585b17392a |
7
cc592295900f
Add write protocol support for private.
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents:
6
diff
changeset
|
210 |
$ hg push http://localhost:$HGPORT/ |
cc592295900f
Add write protocol support for private.
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents:
6
diff
changeset
|
211 |
pushing to http://localhost:$HGPORT/ |
cc592295900f
Add write protocol support for private.
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents:
6
diff
changeset
|
212 |
searching for changes |
cc592295900f
Add write protocol support for private.
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents:
6
diff
changeset
|
213 |
remote: adding changesets |
cc592295900f
Add write protocol support for private.
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents:
6
diff
changeset
|
214 |
remote: adding manifests |
cc592295900f
Add write protocol support for private.
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents:
6
diff
changeset
|
215 |
remote: adding file changes |
97
e672cb1263cb
[states] make disabling state saftier
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
51
diff
changeset
|
216 |
remote: added 4 changesets with 4 changes to 2 files |
7
cc592295900f
Add write protocol support for private.
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents:
6
diff
changeset
|
217 |
$ "$TESTDIR/killdaemons.py" |