##// END OF EJS Templates
tests: don't just silently strip port numbers
Mads Kiilerich -
r10398:ace3cf2b default
parent child Browse files
Show More
@@ -1,202 +1,202
1 #!/bin/sh
1 #!/bin/sh
2
2
3 # adjust to non-default HGPORT, e.g. with run-tests.py -j
3 # adjust to non-default HGPORT, e.g. with run-tests.py -j
4 hideport() { sed "s/localhost:$HGPORT/localhost:20059/"; }
4 hideport() { sed "s/localhost:$HGPORT/localhost:\$HGPORT/"; }
5 hidehash() { sed "s/changeset 3:............ merges/changeset 3:... merges/"; }
5 hidehash() { sed "s/changeset 3:............ merges/changeset 3:... merges/"; }
6
6
7 echo "[extensions]" >> $HGRCPATH
7 echo "[extensions]" >> $HGRCPATH
8 echo "fetch=" >> $HGRCPATH
8 echo "fetch=" >> $HGRCPATH
9
9
10 echo % test fetch with default branches only
10 echo % test fetch with default branches only
11 hg init a
11 hg init a
12 echo a > a/a
12 echo a > a/a
13 hg --cwd a commit -d '1 0' -Ama
13 hg --cwd a commit -d '1 0' -Ama
14
14
15 hg clone a b
15 hg clone a b
16 hg clone a c
16 hg clone a c
17
17
18 echo b > a/b
18 echo b > a/b
19 hg --cwd a commit -d '2 0' -Amb
19 hg --cwd a commit -d '2 0' -Amb
20 hg --cwd a parents -q
20 hg --cwd a parents -q
21
21
22 echo % should pull one change
22 echo % should pull one change
23 hg --cwd b fetch ../a
23 hg --cwd b fetch ../a
24 hg --cwd b parents -q
24 hg --cwd b parents -q
25
25
26 echo c > c/c
26 echo c > c/c
27 hg --cwd c commit -d '3 0' -Amc
27 hg --cwd c commit -d '3 0' -Amc
28
28
29 hg clone c d
29 hg clone c d
30 hg clone c e
30 hg clone c e
31
31
32 # We cannot use the default commit message if fetching from a local
32 # We cannot use the default commit message if fetching from a local
33 # repo, because the path of the repo will be included in the commit
33 # repo, because the path of the repo will be included in the commit
34 # message, making every commit appear different.
34 # message, making every commit appear different.
35
35
36 echo % should merge c into a
36 echo % should merge c into a
37 hg --cwd c fetch -d '4 0' -m 'automated merge' ../a
37 hg --cwd c fetch -d '4 0' -m 'automated merge' ../a
38 ls c
38 ls c
39
39
40 netstat -tnap 2>/dev/null | grep $HGPORT | grep LISTEN
40 netstat -tnap 2>/dev/null | grep $HGPORT | grep LISTEN
41 hg --cwd a serve -a localhost -p $HGPORT -d --pid-file=hg.pid
41 hg --cwd a serve -a localhost -p $HGPORT -d --pid-file=hg.pid
42 cat a/hg.pid >> "$DAEMON_PIDS"
42 cat a/hg.pid >> "$DAEMON_PIDS"
43
43
44 echo '% fetch over http, no auth'
44 echo '% fetch over http, no auth'
45 hg --cwd d fetch -d '5 0' http://localhost:$HGPORT/ | hideport | hidehash
45 hg --cwd d fetch -d '5 0' http://localhost:$HGPORT/ | hideport | hidehash
46 hg --cwd d tip --template '{desc}\n' | hideport
46 hg --cwd d tip --template '{desc}\n' | hideport
47
47
48 echo '% fetch over http with auth (should be hidden in desc)'
48 echo '% fetch over http with auth (should be hidden in desc)'
49 hg --cwd e fetch -d '5 0' http://user:password@localhost:$HGPORT/ | hideport | hidehash
49 hg --cwd e fetch -d '5 0' http://user:password@localhost:$HGPORT/ | hideport | hidehash
50 hg --cwd e tip --template '{desc}\n' | hideport
50 hg --cwd e tip --template '{desc}\n' | hideport
51
51
52 hg clone a f
52 hg clone a f
53 hg clone a g
53 hg clone a g
54
54
55 echo f > f/f
55 echo f > f/f
56 hg --cwd f ci -d '6 0' -Amf
56 hg --cwd f ci -d '6 0' -Amf
57
57
58 echo g > g/g
58 echo g > g/g
59 hg --cwd g ci -d '6 0' -Amg
59 hg --cwd g ci -d '6 0' -Amg
60
60
61 hg clone -q f h
61 hg clone -q f h
62 hg clone -q g i
62 hg clone -q g i
63
63
64 echo % should merge f into g
64 echo % should merge f into g
65 hg --cwd g fetch -d '7 0' --switch -m 'automated merge' ../f
65 hg --cwd g fetch -d '7 0' --switch -m 'automated merge' ../f
66
66
67 rm i/g
67 rm i/g
68 echo % should abort, because i is modified
68 echo % should abort, because i is modified
69 hg --cwd i fetch ../h
69 hg --cwd i fetch ../h
70
70
71
71
72 echo % test fetch with named branches
72 echo % test fetch with named branches
73 hg init nbase
73 hg init nbase
74 echo base > nbase/a
74 echo base > nbase/a
75 hg -R nbase ci -d '1 0' -Am base
75 hg -R nbase ci -d '1 0' -Am base
76 hg -R nbase branch a
76 hg -R nbase branch a
77 echo a > nbase/a
77 echo a > nbase/a
78 hg -R nbase ci -d '2 0' -m a
78 hg -R nbase ci -d '2 0' -m a
79 hg -R nbase up -C 0
79 hg -R nbase up -C 0
80 hg -R nbase branch b
80 hg -R nbase branch b
81 echo b > nbase/b
81 echo b > nbase/b
82 hg -R nbase ci -Ad '3 0' -m b
82 hg -R nbase ci -Ad '3 0' -m b
83
83
84 echo
84 echo
85 echo % pull in change on foreign branch
85 echo % pull in change on foreign branch
86 hg clone nbase n1
86 hg clone nbase n1
87 hg clone nbase n2
87 hg clone nbase n2
88 hg -R n1 up -C a
88 hg -R n1 up -C a
89 echo aa > n1/a
89 echo aa > n1/a
90 hg -R n1 ci -d '4 0' -m a1
90 hg -R n1 ci -d '4 0' -m a1
91
91
92 hg -R n2 up -C b
92 hg -R n2 up -C b
93 hg -R n2 fetch -d '9 0' -m 'merge' n1
93 hg -R n2 fetch -d '9 0' -m 'merge' n1
94 echo '% parent should be 2 (no automatic update)'
94 echo '% parent should be 2 (no automatic update)'
95 hg -R n2 parents --template '{rev}\n'
95 hg -R n2 parents --template '{rev}\n'
96 rm -fr n1 n2
96 rm -fr n1 n2
97
97
98 echo
98 echo
99 echo % pull in changes on both foreign and local branches
99 echo % pull in changes on both foreign and local branches
100 hg clone nbase n1
100 hg clone nbase n1
101 hg clone nbase n2
101 hg clone nbase n2
102 hg -R n1 up -C a
102 hg -R n1 up -C a
103 echo aa > n1/a
103 echo aa > n1/a
104 hg -R n1 ci -d '4 0' -m a1
104 hg -R n1 ci -d '4 0' -m a1
105 hg -R n1 up -C b
105 hg -R n1 up -C b
106 echo bb > n1/b
106 echo bb > n1/b
107 hg -R n1 ci -d '5 0' -m b1
107 hg -R n1 ci -d '5 0' -m b1
108
108
109 hg -R n2 up -C b
109 hg -R n2 up -C b
110 hg -R n2 fetch -d '9 0' -m 'merge' n1
110 hg -R n2 fetch -d '9 0' -m 'merge' n1
111 echo '% parent should be 4 (fast forward)'
111 echo '% parent should be 4 (fast forward)'
112 hg -R n2 parents --template '{rev}\n'
112 hg -R n2 parents --template '{rev}\n'
113 rm -fr n1 n2
113 rm -fr n1 n2
114
114
115 echo
115 echo
116 echo '% pull changes on foreign (2 new heads) and local (1 new head) branches'
116 echo '% pull changes on foreign (2 new heads) and local (1 new head) branches'
117 echo % with a local change
117 echo % with a local change
118 hg clone nbase n1
118 hg clone nbase n1
119 hg clone nbase n2
119 hg clone nbase n2
120 hg -R n1 up -C a
120 hg -R n1 up -C a
121 echo a1 > n1/a
121 echo a1 > n1/a
122 hg -R n1 ci -d '4 0' -m a1
122 hg -R n1 ci -d '4 0' -m a1
123 hg -R n1 up -C b
123 hg -R n1 up -C b
124 echo bb > n1/b
124 echo bb > n1/b
125 hg -R n1 ci -d '5 0' -m b1
125 hg -R n1 ci -d '5 0' -m b1
126 hg -R n1 up -C 1
126 hg -R n1 up -C 1
127 echo a2 > n1/a
127 echo a2 > n1/a
128 hg -R n1 ci -d '6 0' -m a2
128 hg -R n1 ci -d '6 0' -m a2
129
129
130 hg -R n2 up -C b
130 hg -R n2 up -C b
131 echo change >> n2/c
131 echo change >> n2/c
132 hg -R n2 ci -Ad '7 0' -m local
132 hg -R n2 ci -Ad '7 0' -m local
133 hg -R n2 fetch -d '9 0' -m 'merge' n1
133 hg -R n2 fetch -d '9 0' -m 'merge' n1
134 echo '% parent should be 7 (new merge changeset)'
134 echo '% parent should be 7 (new merge changeset)'
135 hg -R n2 parents --template '{rev}\n'
135 hg -R n2 parents --template '{rev}\n'
136 rm -fr n1 n2
136 rm -fr n1 n2
137
137
138 echo '% pull in changes on foreign (merge of local branch) and local (2 new'
138 echo '% pull in changes on foreign (merge of local branch) and local (2 new'
139 echo '% heads) with a local change'
139 echo '% heads) with a local change'
140 hg clone nbase n1
140 hg clone nbase n1
141 hg clone nbase n2
141 hg clone nbase n2
142 hg -R n1 up -C a
142 hg -R n1 up -C a
143 hg -R n1 merge b
143 hg -R n1 merge b
144 hg -R n1 ci -d '4 0' -m merge
144 hg -R n1 ci -d '4 0' -m merge
145 hg -R n1 up -C 2
145 hg -R n1 up -C 2
146 echo c > n1/a
146 echo c > n1/a
147 hg -R n1 ci -d '5 0' -m c
147 hg -R n1 ci -d '5 0' -m c
148 hg -R n1 up -C 2
148 hg -R n1 up -C 2
149 echo cc > n1/a
149 echo cc > n1/a
150 hg -R n1 ci -d '6 0' -m cc
150 hg -R n1 ci -d '6 0' -m cc
151
151
152 hg -R n2 up -C b
152 hg -R n2 up -C b
153 echo change >> n2/b
153 echo change >> n2/b
154 hg -R n2 ci -Ad '7 0' -m local
154 hg -R n2 ci -Ad '7 0' -m local
155 hg -R n2 fetch -d '9 0' -m 'merge' n1
155 hg -R n2 fetch -d '9 0' -m 'merge' n1
156 echo '% parent should be 3 (fetch did not merge anything)'
156 echo '% parent should be 3 (fetch did not merge anything)'
157 hg -R n2 parents --template '{rev}\n'
157 hg -R n2 parents --template '{rev}\n'
158 rm -fr n1 n2
158 rm -fr n1 n2
159
159
160 echo % pull in change on different branch than dirstate
160 echo % pull in change on different branch than dirstate
161 hg init n1
161 hg init n1
162 echo a > n1/a
162 echo a > n1/a
163 hg -R n1 ci -Am initial
163 hg -R n1 ci -Am initial
164 hg clone n1 n2
164 hg clone n1 n2
165 echo b > n1/a
165 echo b > n1/a
166 hg -R n1 ci -m next
166 hg -R n1 ci -m next
167 hg -R n2 branch topic
167 hg -R n2 branch topic
168 hg -R n2 fetch -d '0 0' -m merge n1
168 hg -R n2 fetch -d '0 0' -m merge n1
169 echo '% parent should be 0 (fetch did not update or merge anything)'
169 echo '% parent should be 0 (fetch did not update or merge anything)'
170 hg -R n2 parents --template '{rev}\n'
170 hg -R n2 parents --template '{rev}\n'
171 rm -fr n1 n2
171 rm -fr n1 n2
172
172
173 echo % test fetch with inactive branches
173 echo % test fetch with inactive branches
174 hg init ib1
174 hg init ib1
175 echo a > ib1/a
175 echo a > ib1/a
176 hg --cwd ib1 ci -Am base
176 hg --cwd ib1 ci -Am base
177 hg --cwd ib1 branch second
177 hg --cwd ib1 branch second
178 echo b > ib1/b
178 echo b > ib1/b
179 hg --cwd ib1 ci -Am onsecond
179 hg --cwd ib1 ci -Am onsecond
180 hg --cwd ib1 branch -f default
180 hg --cwd ib1 branch -f default
181 echo c > ib1/c
181 echo c > ib1/c
182 hg --cwd ib1 ci -Am newdefault
182 hg --cwd ib1 ci -Am newdefault
183 hg clone ib1 ib2
183 hg clone ib1 ib2
184 echo % fetch should succeed
184 echo % fetch should succeed
185 hg --cwd ib2 fetch ../ib1
185 hg --cwd ib2 fetch ../ib1
186 rm -fr ib1 ib2
186 rm -fr ib1 ib2
187
187
188 echo % test issue1726
188 echo % test issue1726
189 hg init i1726r1
189 hg init i1726r1
190 echo a > i1726r1/a
190 echo a > i1726r1/a
191 hg --cwd i1726r1 ci -Am base
191 hg --cwd i1726r1 ci -Am base
192 hg clone i1726r1 i1726r2
192 hg clone i1726r1 i1726r2
193 echo b > i1726r1/a
193 echo b > i1726r1/a
194 hg --cwd i1726r1 ci -m second
194 hg --cwd i1726r1 ci -m second
195 echo c > i1726r2/a
195 echo c > i1726r2/a
196 hg --cwd i1726r2 ci -m third
196 hg --cwd i1726r2 ci -m third
197 HGMERGE=true hg --cwd i1726r2 fetch ../i1726r1 | sed 's/new changeset 3:[0-9a-zA-Z]* /new changeset 3 /'
197 HGMERGE=true hg --cwd i1726r2 fetch ../i1726r1 | sed 's/new changeset 3:[0-9a-zA-Z]* /new changeset 3 /'
198 hg --cwd i1726r2 heads default --template '{rev}\n'
198 hg --cwd i1726r2 heads default --template '{rev}\n'
199
199
200 "$TESTDIR/killdaemons.py"
200 "$TESTDIR/killdaemons.py"
201
201
202 true
202 true
@@ -1,209 +1,209
1 % test fetch with default branches only
1 % test fetch with default branches only
2 adding a
2 adding a
3 updating to branch default
3 updating to branch default
4 1 files updated, 0 files merged, 0 files removed, 0 files unresolved
4 1 files updated, 0 files merged, 0 files removed, 0 files unresolved
5 updating to branch default
5 updating to branch default
6 1 files updated, 0 files merged, 0 files removed, 0 files unresolved
6 1 files updated, 0 files merged, 0 files removed, 0 files unresolved
7 adding b
7 adding b
8 1:97d72e5f12c7
8 1:97d72e5f12c7
9 % should pull one change
9 % should pull one change
10 pulling from ../a
10 pulling from ../a
11 searching for changes
11 searching for changes
12 adding changesets
12 adding changesets
13 adding manifests
13 adding manifests
14 adding file changes
14 adding file changes
15 added 1 changesets with 1 changes to 1 files
15 added 1 changesets with 1 changes to 1 files
16 1 files updated, 0 files merged, 0 files removed, 0 files unresolved
16 1 files updated, 0 files merged, 0 files removed, 0 files unresolved
17 1:97d72e5f12c7
17 1:97d72e5f12c7
18 adding c
18 adding c
19 updating to branch default
19 updating to branch default
20 2 files updated, 0 files merged, 0 files removed, 0 files unresolved
20 2 files updated, 0 files merged, 0 files removed, 0 files unresolved
21 updating to branch default
21 updating to branch default
22 2 files updated, 0 files merged, 0 files removed, 0 files unresolved
22 2 files updated, 0 files merged, 0 files removed, 0 files unresolved
23 % should merge c into a
23 % should merge c into a
24 pulling from ../a
24 pulling from ../a
25 searching for changes
25 searching for changes
26 adding changesets
26 adding changesets
27 adding manifests
27 adding manifests
28 adding file changes
28 adding file changes
29 added 1 changesets with 1 changes to 1 files (+1 heads)
29 added 1 changesets with 1 changes to 1 files (+1 heads)
30 updating to 2:97d72e5f12c7
30 updating to 2:97d72e5f12c7
31 1 files updated, 0 files merged, 1 files removed, 0 files unresolved
31 1 files updated, 0 files merged, 1 files removed, 0 files unresolved
32 merging with 1:5e056962225c
32 merging with 1:5e056962225c
33 1 files updated, 0 files merged, 0 files removed, 0 files unresolved
33 1 files updated, 0 files merged, 0 files removed, 0 files unresolved
34 new changeset 3:cd3a41621cf0 merges remote changes with local
34 new changeset 3:cd3a41621cf0 merges remote changes with local
35 a
35 a
36 b
36 b
37 c
37 c
38 % fetch over http, no auth
38 % fetch over http, no auth
39 pulling from http://localhost:20059/
39 pulling from http://localhost:$HGPORT/
40 searching for changes
40 searching for changes
41 adding changesets
41 adding changesets
42 adding manifests
42 adding manifests
43 adding file changes
43 adding file changes
44 added 1 changesets with 1 changes to 1 files (+1 heads)
44 added 1 changesets with 1 changes to 1 files (+1 heads)
45 updating to 2:97d72e5f12c7
45 updating to 2:97d72e5f12c7
46 1 files updated, 0 files merged, 1 files removed, 0 files unresolved
46 1 files updated, 0 files merged, 1 files removed, 0 files unresolved
47 merging with 1:5e056962225c
47 merging with 1:5e056962225c
48 1 files updated, 0 files merged, 0 files removed, 0 files unresolved
48 1 files updated, 0 files merged, 0 files removed, 0 files unresolved
49 new changeset 3:... merges remote changes with local
49 new changeset 3:... merges remote changes with local
50 Automated merge with http://localhost:20059/
50 Automated merge with http://localhost:$HGPORT/
51 % fetch over http with auth (should be hidden in desc)
51 % fetch over http with auth (should be hidden in desc)
52 pulling from http://user:***@localhost:20059/
52 pulling from http://user:***@localhost:$HGPORT/
53 searching for changes
53 searching for changes
54 adding changesets
54 adding changesets
55 adding manifests
55 adding manifests
56 adding file changes
56 adding file changes
57 added 1 changesets with 1 changes to 1 files (+1 heads)
57 added 1 changesets with 1 changes to 1 files (+1 heads)
58 updating to 2:97d72e5f12c7
58 updating to 2:97d72e5f12c7
59 1 files updated, 0 files merged, 1 files removed, 0 files unresolved
59 1 files updated, 0 files merged, 1 files removed, 0 files unresolved
60 merging with 1:5e056962225c
60 merging with 1:5e056962225c
61 1 files updated, 0 files merged, 0 files removed, 0 files unresolved
61 1 files updated, 0 files merged, 0 files removed, 0 files unresolved
62 new changeset 3:... merges remote changes with local
62 new changeset 3:... merges remote changes with local
63 Automated merge with http://localhost:20059/
63 Automated merge with http://localhost:$HGPORT/
64 updating to branch default
64 updating to branch default
65 2 files updated, 0 files merged, 0 files removed, 0 files unresolved
65 2 files updated, 0 files merged, 0 files removed, 0 files unresolved
66 updating to branch default
66 updating to branch default
67 2 files updated, 0 files merged, 0 files removed, 0 files unresolved
67 2 files updated, 0 files merged, 0 files removed, 0 files unresolved
68 adding f
68 adding f
69 adding g
69 adding g
70 % should merge f into g
70 % should merge f into g
71 pulling from ../f
71 pulling from ../f
72 searching for changes
72 searching for changes
73 adding changesets
73 adding changesets
74 adding manifests
74 adding manifests
75 adding file changes
75 adding file changes
76 added 1 changesets with 1 changes to 1 files (+1 heads)
76 added 1 changesets with 1 changes to 1 files (+1 heads)
77 0 files updated, 0 files merged, 0 files removed, 0 files unresolved
77 0 files updated, 0 files merged, 0 files removed, 0 files unresolved
78 merging with 3:cc6a3744834d
78 merging with 3:cc6a3744834d
79 1 files updated, 0 files merged, 0 files removed, 0 files unresolved
79 1 files updated, 0 files merged, 0 files removed, 0 files unresolved
80 new changeset 4:55aa4f32ec59 merges remote changes with local
80 new changeset 4:55aa4f32ec59 merges remote changes with local
81 % should abort, because i is modified
81 % should abort, because i is modified
82 abort: working directory is missing some files
82 abort: working directory is missing some files
83 % test fetch with named branches
83 % test fetch with named branches
84 adding a
84 adding a
85 marked working directory as branch a
85 marked working directory as branch a
86 1 files updated, 0 files merged, 0 files removed, 0 files unresolved
86 1 files updated, 0 files merged, 0 files removed, 0 files unresolved
87 marked working directory as branch b
87 marked working directory as branch b
88 adding b
88 adding b
89 created new head
89 created new head
90
90
91 % pull in change on foreign branch
91 % pull in change on foreign branch
92 updating to branch default
92 updating to branch default
93 1 files updated, 0 files merged, 0 files removed, 0 files unresolved
93 1 files updated, 0 files merged, 0 files removed, 0 files unresolved
94 updating to branch default
94 updating to branch default
95 1 files updated, 0 files merged, 0 files removed, 0 files unresolved
95 1 files updated, 0 files merged, 0 files removed, 0 files unresolved
96 1 files updated, 0 files merged, 0 files removed, 0 files unresolved
96 1 files updated, 0 files merged, 0 files removed, 0 files unresolved
97 1 files updated, 0 files merged, 0 files removed, 0 files unresolved
97 1 files updated, 0 files merged, 0 files removed, 0 files unresolved
98 pulling from n1
98 pulling from n1
99 searching for changes
99 searching for changes
100 adding changesets
100 adding changesets
101 adding manifests
101 adding manifests
102 adding file changes
102 adding file changes
103 added 1 changesets with 1 changes to 1 files
103 added 1 changesets with 1 changes to 1 files
104 % parent should be 2 (no automatic update)
104 % parent should be 2 (no automatic update)
105 2
105 2
106
106
107 % pull in changes on both foreign and local branches
107 % pull in changes on both foreign and local branches
108 updating to branch default
108 updating to branch default
109 1 files updated, 0 files merged, 0 files removed, 0 files unresolved
109 1 files updated, 0 files merged, 0 files removed, 0 files unresolved
110 updating to branch default
110 updating to branch default
111 1 files updated, 0 files merged, 0 files removed, 0 files unresolved
111 1 files updated, 0 files merged, 0 files removed, 0 files unresolved
112 1 files updated, 0 files merged, 0 files removed, 0 files unresolved
112 1 files updated, 0 files merged, 0 files removed, 0 files unresolved
113 2 files updated, 0 files merged, 0 files removed, 0 files unresolved
113 2 files updated, 0 files merged, 0 files removed, 0 files unresolved
114 1 files updated, 0 files merged, 0 files removed, 0 files unresolved
114 1 files updated, 0 files merged, 0 files removed, 0 files unresolved
115 pulling from n1
115 pulling from n1
116 searching for changes
116 searching for changes
117 adding changesets
117 adding changesets
118 adding manifests
118 adding manifests
119 adding file changes
119 adding file changes
120 added 2 changesets with 2 changes to 2 files
120 added 2 changesets with 2 changes to 2 files
121 1 files updated, 0 files merged, 0 files removed, 0 files unresolved
121 1 files updated, 0 files merged, 0 files removed, 0 files unresolved
122 % parent should be 4 (fast forward)
122 % parent should be 4 (fast forward)
123 4
123 4
124
124
125 % pull changes on foreign (2 new heads) and local (1 new head) branches
125 % pull changes on foreign (2 new heads) and local (1 new head) branches
126 % with a local change
126 % with a local change
127 updating to branch default
127 updating to branch default
128 1 files updated, 0 files merged, 0 files removed, 0 files unresolved
128 1 files updated, 0 files merged, 0 files removed, 0 files unresolved
129 updating to branch default
129 updating to branch default
130 1 files updated, 0 files merged, 0 files removed, 0 files unresolved
130 1 files updated, 0 files merged, 0 files removed, 0 files unresolved
131 1 files updated, 0 files merged, 0 files removed, 0 files unresolved
131 1 files updated, 0 files merged, 0 files removed, 0 files unresolved
132 2 files updated, 0 files merged, 0 files removed, 0 files unresolved
132 2 files updated, 0 files merged, 0 files removed, 0 files unresolved
133 1 files updated, 0 files merged, 1 files removed, 0 files unresolved
133 1 files updated, 0 files merged, 1 files removed, 0 files unresolved
134 created new head
134 created new head
135 1 files updated, 0 files merged, 0 files removed, 0 files unresolved
135 1 files updated, 0 files merged, 0 files removed, 0 files unresolved
136 adding c
136 adding c
137 pulling from n1
137 pulling from n1
138 searching for changes
138 searching for changes
139 adding changesets
139 adding changesets
140 adding manifests
140 adding manifests
141 adding file changes
141 adding file changes
142 added 3 changesets with 3 changes to 2 files (+2 heads)
142 added 3 changesets with 3 changes to 2 files (+2 heads)
143 updating to 5:708c6cce3d26
143 updating to 5:708c6cce3d26
144 1 files updated, 0 files merged, 1 files removed, 0 files unresolved
144 1 files updated, 0 files merged, 1 files removed, 0 files unresolved
145 merging with 3:d83427717b1f
145 merging with 3:d83427717b1f
146 1 files updated, 0 files merged, 0 files removed, 0 files unresolved
146 1 files updated, 0 files merged, 0 files removed, 0 files unresolved
147 new changeset 7:48f1a33f52af merges remote changes with local
147 new changeset 7:48f1a33f52af merges remote changes with local
148 % parent should be 7 (new merge changeset)
148 % parent should be 7 (new merge changeset)
149 7
149 7
150 % pull in changes on foreign (merge of local branch) and local (2 new
150 % pull in changes on foreign (merge of local branch) and local (2 new
151 % heads) with a local change
151 % heads) with a local change
152 updating to branch default
152 updating to branch default
153 1 files updated, 0 files merged, 0 files removed, 0 files unresolved
153 1 files updated, 0 files merged, 0 files removed, 0 files unresolved
154 updating to branch default
154 updating to branch default
155 1 files updated, 0 files merged, 0 files removed, 0 files unresolved
155 1 files updated, 0 files merged, 0 files removed, 0 files unresolved
156 1 files updated, 0 files merged, 0 files removed, 0 files unresolved
156 1 files updated, 0 files merged, 0 files removed, 0 files unresolved
157 1 files updated, 0 files merged, 0 files removed, 0 files unresolved
157 1 files updated, 0 files merged, 0 files removed, 0 files unresolved
158 (branch merge, don't forget to commit)
158 (branch merge, don't forget to commit)
159 1 files updated, 0 files merged, 0 files removed, 0 files unresolved
159 1 files updated, 0 files merged, 0 files removed, 0 files unresolved
160 created new head
160 created new head
161 1 files updated, 0 files merged, 0 files removed, 0 files unresolved
161 1 files updated, 0 files merged, 0 files removed, 0 files unresolved
162 created new head
162 created new head
163 1 files updated, 0 files merged, 0 files removed, 0 files unresolved
163 1 files updated, 0 files merged, 0 files removed, 0 files unresolved
164 pulling from n1
164 pulling from n1
165 searching for changes
165 searching for changes
166 adding changesets
166 adding changesets
167 adding manifests
167 adding manifests
168 adding file changes
168 adding file changes
169 added 3 changesets with 2 changes to 1 files (+2 heads)
169 added 3 changesets with 2 changes to 1 files (+2 heads)
170 not merging with 1 other new branch heads (use "hg heads ." and "hg merge" to merge them)
170 not merging with 1 other new branch heads (use "hg heads ." and "hg merge" to merge them)
171 % parent should be 3 (fetch did not merge anything)
171 % parent should be 3 (fetch did not merge anything)
172 3
172 3
173 % pull in change on different branch than dirstate
173 % pull in change on different branch than dirstate
174 adding a
174 adding a
175 updating to branch default
175 updating to branch default
176 1 files updated, 0 files merged, 0 files removed, 0 files unresolved
176 1 files updated, 0 files merged, 0 files removed, 0 files unresolved
177 marked working directory as branch topic
177 marked working directory as branch topic
178 abort: working dir not at branch tip (use "hg update" to check out branch tip)
178 abort: working dir not at branch tip (use "hg update" to check out branch tip)
179 % parent should be 0 (fetch did not update or merge anything)
179 % parent should be 0 (fetch did not update or merge anything)
180 0
180 0
181 % test fetch with inactive branches
181 % test fetch with inactive branches
182 adding a
182 adding a
183 marked working directory as branch second
183 marked working directory as branch second
184 adding b
184 adding b
185 marked working directory as branch default
185 marked working directory as branch default
186 adding c
186 adding c
187 updating to branch default
187 updating to branch default
188 3 files updated, 0 files merged, 0 files removed, 0 files unresolved
188 3 files updated, 0 files merged, 0 files removed, 0 files unresolved
189 % fetch should succeed
189 % fetch should succeed
190 pulling from ../ib1
190 pulling from ../ib1
191 searching for changes
191 searching for changes
192 no changes found
192 no changes found
193 % test issue1726
193 % test issue1726
194 adding a
194 adding a
195 updating to branch default
195 updating to branch default
196 1 files updated, 0 files merged, 0 files removed, 0 files unresolved
196 1 files updated, 0 files merged, 0 files removed, 0 files unresolved
197 pulling from ../i1726r1
197 pulling from ../i1726r1
198 searching for changes
198 searching for changes
199 adding changesets
199 adding changesets
200 adding manifests
200 adding manifests
201 adding file changes
201 adding file changes
202 added 1 changesets with 1 changes to 1 files (+1 heads)
202 added 1 changesets with 1 changes to 1 files (+1 heads)
203 updating to 2:7837755a2789
203 updating to 2:7837755a2789
204 1 files updated, 0 files merged, 0 files removed, 0 files unresolved
204 1 files updated, 0 files merged, 0 files removed, 0 files unresolved
205 merging with 1:d1f0c6c48ebd
205 merging with 1:d1f0c6c48ebd
206 merging a
206 merging a
207 0 files updated, 1 files merged, 0 files removed, 0 files unresolved
207 0 files updated, 1 files merged, 0 files removed, 0 files unresolved
208 new changeset 3 merges remote changes with local
208 new changeset 3 merges remote changes with local
209 3
209 3
@@ -1,43 +1,43
1 #!/bin/sh
1 #!/bin/sh
2
2
3 cp "$TESTDIR"/printenv.py .
3 cp "$TESTDIR"/printenv.py .
4
4
5 hg init test
5 hg init test
6 cd test
6 cd test
7 echo foo>foo
7 echo foo>foo
8 mkdir foo.d foo.d/bAr.hg.d foo.d/baR.d.hg
8 mkdir foo.d foo.d/bAr.hg.d foo.d/baR.d.hg
9 echo foo>foo.d/foo
9 echo foo>foo.d/foo
10 echo bar>foo.d/bAr.hg.d/BaR
10 echo bar>foo.d/bAr.hg.d/BaR
11 echo bar>foo.d/baR.d.hg/bAR
11 echo bar>foo.d/baR.d.hg/bAR
12
12
13 hg commit -A -m 1
13 hg commit -A -m 1
14 hg --config server.uncompressed=True serve -p $HGPORT -d --pid-file=../hg1.pid
14 hg --config server.uncompressed=True serve -p $HGPORT -d --pid-file=../hg1.pid
15 hg serve -p $HGPORT1 -d --pid-file=../hg2.pid
15 hg serve -p $HGPORT1 -d --pid-file=../hg2.pid
16 # Test server address cannot be reused
16 # Test server address cannot be reused
17 hg serve -p $HGPORT1 2>&1 | sed -e "s/abort: cannot start server at ':$HGPORT1':.*/abort: cannot start server at ':20060':/"
17 hg serve -p $HGPORT1 2>&1 | sed -e "s/abort: cannot start server at ':$HGPORT1':.*/abort: cannot start server at ':\$HGPORT1':/"
18 cd ..
18 cd ..
19 cat hg1.pid hg2.pid >> $DAEMON_PIDS
19 cat hg1.pid hg2.pid >> $DAEMON_PIDS
20
20
21 echo % clone via stream
21 echo % clone via stream
22 hg clone --uncompressed http://localhost:$HGPORT/ copy 2>&1 | \
22 hg clone --uncompressed http://localhost:$HGPORT/ copy 2>&1 | \
23 sed -e 's/[0-9][0-9.]*/XXX/g' -e 's/[KM]\(B\/sec\)/X\1/'
23 sed -e 's/[0-9][0-9.]*/XXX/g' -e 's/[KM]\(B\/sec\)/X\1/'
24 hg verify -R copy
24 hg verify -R copy
25
25
26 echo % try to clone via stream, should use pull instead
26 echo % try to clone via stream, should use pull instead
27 hg clone --uncompressed http://localhost:$HGPORT1/ copy2
27 hg clone --uncompressed http://localhost:$HGPORT1/ copy2
28
28
29 echo % clone via pull
29 echo % clone via pull
30 hg clone http://localhost:$HGPORT1/ copy-pull
30 hg clone http://localhost:$HGPORT1/ copy-pull
31 hg verify -R copy-pull
31 hg verify -R copy-pull
32
32
33 cd test
33 cd test
34 echo bar > bar
34 echo bar > bar
35 hg commit -A -d '1 0' -m 2
35 hg commit -A -d '1 0' -m 2
36 cd ..
36 cd ..
37
37
38 echo % pull
38 echo % pull
39 cd copy-pull
39 cd copy-pull
40 echo '[hooks]' >> .hg/hgrc
40 echo '[hooks]' >> .hg/hgrc
41 echo 'changegroup = python ../printenv.py changegroup' >> .hg/hgrc
41 echo 'changegroup = python ../printenv.py changegroup' >> .hg/hgrc
42 hg pull | sed -e 's,:[0-9][0-9]*/,/,'
42 hg pull | sed -e "s,:$HGPORT1/,:\$HGPORT1/,"
43 cd ..
43 cd ..
@@ -1,79 +1,79
1 #!/bin/sh
1 #!/bin/sh
2
2
3 hg init remote
3 hg init remote
4 cd remote
4 cd remote
5 echo "# creating 'remote'"
5 echo "# creating 'remote'"
6 cat >>afile <<EOF
6 cat >>afile <<EOF
7 0
7 0
8 EOF
8 EOF
9 hg add afile
9 hg add afile
10 hg commit -m "0.0"
10 hg commit -m "0.0"
11 cat >>afile <<EOF
11 cat >>afile <<EOF
12 1
12 1
13 EOF
13 EOF
14 hg commit -m "0.1"
14 hg commit -m "0.1"
15 cat >>afile <<EOF
15 cat >>afile <<EOF
16 2
16 2
17 EOF
17 EOF
18 hg commit -m "0.2"
18 hg commit -m "0.2"
19 cat >>afile <<EOF
19 cat >>afile <<EOF
20 3
20 3
21 EOF
21 EOF
22 hg commit -m "0.3"
22 hg commit -m "0.3"
23 hg update -C 0
23 hg update -C 0
24 cat >>afile <<EOF
24 cat >>afile <<EOF
25 1
25 1
26 EOF
26 EOF
27 hg commit -m "1.1"
27 hg commit -m "1.1"
28 cat >>afile <<EOF
28 cat >>afile <<EOF
29 2
29 2
30 EOF
30 EOF
31 hg commit -m "1.2"
31 hg commit -m "1.2"
32 cat >fred <<EOF
32 cat >fred <<EOF
33 a line
33 a line
34 EOF
34 EOF
35 cat >>afile <<EOF
35 cat >>afile <<EOF
36 3
36 3
37 EOF
37 EOF
38 hg add fred
38 hg add fred
39 hg commit -m "1.3"
39 hg commit -m "1.3"
40 hg mv afile adifferentfile
40 hg mv afile adifferentfile
41 hg commit -m "1.3m"
41 hg commit -m "1.3m"
42 hg update -C 3
42 hg update -C 3
43 hg mv afile anotherfile
43 hg mv afile anotherfile
44 hg commit -m "0.3m"
44 hg commit -m "0.3m"
45 hg debugindex .hg/store/data/afile.i
45 hg debugindex .hg/store/data/afile.i
46 hg debugindex .hg/store/data/adifferentfile.i
46 hg debugindex .hg/store/data/adifferentfile.i
47 hg debugindex .hg/store/data/anotherfile.i
47 hg debugindex .hg/store/data/anotherfile.i
48 hg debugindex .hg/store/data/fred.i
48 hg debugindex .hg/store/data/fred.i
49 hg debugindex .hg/store/00manifest.i
49 hg debugindex .hg/store/00manifest.i
50 hg verify
50 hg verify
51 echo "# Starting server"
51 echo "# Starting server"
52 hg serve -p $HGPORT -E ../error.log -d --pid-file=../hg1.pid
52 hg serve -p $HGPORT -E ../error.log -d --pid-file=../hg1.pid
53 cd ..
53 cd ..
54 cat hg1.pid >> $DAEMON_PIDS
54 cat hg1.pid >> $DAEMON_PIDS
55
55
56 echo "# clone remote via stream"
56 echo "# clone remote via stream"
57 for i in 0 1 2 3 4 5 6 7 8; do
57 for i in 0 1 2 3 4 5 6 7 8; do
58 hg clone -r "$i" http://localhost:$HGPORT/ test-"$i" 2>&1
58 hg clone -r "$i" http://localhost:$HGPORT/ test-"$i" 2>&1
59 if cd test-"$i"; then
59 if cd test-"$i"; then
60 hg verify
60 hg verify
61 cd ..
61 cd ..
62 fi
62 fi
63 done
63 done
64 cd test-8
64 cd test-8
65 hg pull ../test-7
65 hg pull ../test-7
66 hg verify
66 hg verify
67 cd ..
67 cd ..
68 cd test-1
68 cd test-1
69 hg pull -r 4 http://localhost:$HGPORT/ 2>&1 | sed -e 's,:[0-9][0-9]*/,/,'
69 hg pull -r 4 http://localhost:$HGPORT/ 2>&1 | sed -e "s,:$HGPORT/,:\$HGPORT/,"
70 hg verify
70 hg verify
71 hg pull http://localhost:$HGPORT/ 2>&1 | sed -e 's,:[0-9][0-9]*/,/,'
71 hg pull http://localhost:$HGPORT/ 2>&1 | sed -e "s,:$HGPORT/,:\$HGPORT/,"
72 cd ..
72 cd ..
73 cd test-2
73 cd test-2
74 hg pull -r 5 http://localhost:$HGPORT/ 2>&1 | sed -e 's,:[0-9][0-9]*/,/,'
74 hg pull -r 5 http://localhost:$HGPORT/ 2>&1 | sed -e "s,:$HGPORT/,:\$HGPORT/,"
75 hg verify
75 hg verify
76 hg pull http://localhost:$HGPORT/ 2>&1 | sed -e 's,:[0-9][0-9]*/,/,'
76 hg pull http://localhost:$HGPORT/ 2>&1 | sed -e "s,:$HGPORT/,:\$HGPORT/,"
77 hg verify
77 hg verify
78 cd ..
78 cd ..
79 cat error.log
79 cat error.log
@@ -1,193 +1,193
1 # creating 'remote'
1 # creating 'remote'
2 1 files updated, 0 files merged, 0 files removed, 0 files unresolved
2 1 files updated, 0 files merged, 0 files removed, 0 files unresolved
3 created new head
3 created new head
4 1 files updated, 0 files merged, 2 files removed, 0 files unresolved
4 1 files updated, 0 files merged, 2 files removed, 0 files unresolved
5 rev offset length base linkrev nodeid p1 p2
5 rev offset length base linkrev nodeid p1 p2
6 0 0 3 0 0 362fef284ce2 000000000000 000000000000
6 0 0 3 0 0 362fef284ce2 000000000000 000000000000
7 1 3 5 1 1 125144f7e028 362fef284ce2 000000000000
7 1 3 5 1 1 125144f7e028 362fef284ce2 000000000000
8 2 8 7 2 2 4c982badb186 125144f7e028 000000000000
8 2 8 7 2 2 4c982badb186 125144f7e028 000000000000
9 3 15 9 3 3 19b1fc555737 4c982badb186 000000000000
9 3 15 9 3 3 19b1fc555737 4c982badb186 000000000000
10 rev offset length base linkrev nodeid p1 p2
10 rev offset length base linkrev nodeid p1 p2
11 0 0 75 0 7 905359268f77 000000000000 000000000000
11 0 0 75 0 7 905359268f77 000000000000 000000000000
12 rev offset length base linkrev nodeid p1 p2
12 rev offset length base linkrev nodeid p1 p2
13 0 0 75 0 8 905359268f77 000000000000 000000000000
13 0 0 75 0 8 905359268f77 000000000000 000000000000
14 rev offset length base linkrev nodeid p1 p2
14 rev offset length base linkrev nodeid p1 p2
15 0 0 8 0 6 12ab3bcc5ea4 000000000000 000000000000
15 0 0 8 0 6 12ab3bcc5ea4 000000000000 000000000000
16 rev offset length base linkrev nodeid p1 p2
16 rev offset length base linkrev nodeid p1 p2
17 0 0 48 0 0 43eadb1d2d06 000000000000 000000000000
17 0 0 48 0 0 43eadb1d2d06 000000000000 000000000000
18 1 48 48 1 1 8b89697eba2c 43eadb1d2d06 000000000000
18 1 48 48 1 1 8b89697eba2c 43eadb1d2d06 000000000000
19 2 96 48 2 2 626a32663c2f 8b89697eba2c 000000000000
19 2 96 48 2 2 626a32663c2f 8b89697eba2c 000000000000
20 3 144 48 3 3 f54c32f13478 626a32663c2f 000000000000
20 3 144 48 3 3 f54c32f13478 626a32663c2f 000000000000
21 4 192 58 3 6 de68e904d169 626a32663c2f 000000000000
21 4 192 58 3 6 de68e904d169 626a32663c2f 000000000000
22 5 250 68 3 7 3b45cc2ab868 de68e904d169 000000000000
22 5 250 68 3 7 3b45cc2ab868 de68e904d169 000000000000
23 6 318 54 6 8 24d86153a002 f54c32f13478 000000000000
23 6 318 54 6 8 24d86153a002 f54c32f13478 000000000000
24 checking changesets
24 checking changesets
25 checking manifests
25 checking manifests
26 crosschecking files in changesets and manifests
26 crosschecking files in changesets and manifests
27 checking files
27 checking files
28 4 files, 9 changesets, 7 total revisions
28 4 files, 9 changesets, 7 total revisions
29 # Starting server
29 # Starting server
30 # clone remote via stream
30 # clone remote via stream
31 requesting all changes
31 requesting all changes
32 adding changesets
32 adding changesets
33 adding manifests
33 adding manifests
34 adding file changes
34 adding file changes
35 added 1 changesets with 1 changes to 1 files
35 added 1 changesets with 1 changes to 1 files
36 updating to branch default
36 updating to branch default
37 1 files updated, 0 files merged, 0 files removed, 0 files unresolved
37 1 files updated, 0 files merged, 0 files removed, 0 files unresolved
38 checking changesets
38 checking changesets
39 checking manifests
39 checking manifests
40 crosschecking files in changesets and manifests
40 crosschecking files in changesets and manifests
41 checking files
41 checking files
42 1 files, 1 changesets, 1 total revisions
42 1 files, 1 changesets, 1 total revisions
43 requesting all changes
43 requesting all changes
44 adding changesets
44 adding changesets
45 adding manifests
45 adding manifests
46 adding file changes
46 adding file changes
47 added 2 changesets with 2 changes to 1 files
47 added 2 changesets with 2 changes to 1 files
48 updating to branch default
48 updating to branch default
49 1 files updated, 0 files merged, 0 files removed, 0 files unresolved
49 1 files updated, 0 files merged, 0 files removed, 0 files unresolved
50 checking changesets
50 checking changesets
51 checking manifests
51 checking manifests
52 crosschecking files in changesets and manifests
52 crosschecking files in changesets and manifests
53 checking files
53 checking files
54 1 files, 2 changesets, 2 total revisions
54 1 files, 2 changesets, 2 total revisions
55 requesting all changes
55 requesting all changes
56 adding changesets
56 adding changesets
57 adding manifests
57 adding manifests
58 adding file changes
58 adding file changes
59 added 3 changesets with 3 changes to 1 files
59 added 3 changesets with 3 changes to 1 files
60 updating to branch default
60 updating to branch default
61 1 files updated, 0 files merged, 0 files removed, 0 files unresolved
61 1 files updated, 0 files merged, 0 files removed, 0 files unresolved
62 checking changesets
62 checking changesets
63 checking manifests
63 checking manifests
64 crosschecking files in changesets and manifests
64 crosschecking files in changesets and manifests
65 checking files
65 checking files
66 1 files, 3 changesets, 3 total revisions
66 1 files, 3 changesets, 3 total revisions
67 requesting all changes
67 requesting all changes
68 adding changesets
68 adding changesets
69 adding manifests
69 adding manifests
70 adding file changes
70 adding file changes
71 added 4 changesets with 4 changes to 1 files
71 added 4 changesets with 4 changes to 1 files
72 updating to branch default
72 updating to branch default
73 1 files updated, 0 files merged, 0 files removed, 0 files unresolved
73 1 files updated, 0 files merged, 0 files removed, 0 files unresolved
74 checking changesets
74 checking changesets
75 checking manifests
75 checking manifests
76 crosschecking files in changesets and manifests
76 crosschecking files in changesets and manifests
77 checking files
77 checking files
78 1 files, 4 changesets, 4 total revisions
78 1 files, 4 changesets, 4 total revisions
79 requesting all changes
79 requesting all changes
80 adding changesets
80 adding changesets
81 adding manifests
81 adding manifests
82 adding file changes
82 adding file changes
83 added 2 changesets with 2 changes to 1 files
83 added 2 changesets with 2 changes to 1 files
84 updating to branch default
84 updating to branch default
85 1 files updated, 0 files merged, 0 files removed, 0 files unresolved
85 1 files updated, 0 files merged, 0 files removed, 0 files unresolved
86 checking changesets
86 checking changesets
87 checking manifests
87 checking manifests
88 crosschecking files in changesets and manifests
88 crosschecking files in changesets and manifests
89 checking files
89 checking files
90 1 files, 2 changesets, 2 total revisions
90 1 files, 2 changesets, 2 total revisions
91 requesting all changes
91 requesting all changes
92 adding changesets
92 adding changesets
93 adding manifests
93 adding manifests
94 adding file changes
94 adding file changes
95 added 3 changesets with 3 changes to 1 files
95 added 3 changesets with 3 changes to 1 files
96 updating to branch default
96 updating to branch default
97 1 files updated, 0 files merged, 0 files removed, 0 files unresolved
97 1 files updated, 0 files merged, 0 files removed, 0 files unresolved
98 checking changesets
98 checking changesets
99 checking manifests
99 checking manifests
100 crosschecking files in changesets and manifests
100 crosschecking files in changesets and manifests
101 checking files
101 checking files
102 1 files, 3 changesets, 3 total revisions
102 1 files, 3 changesets, 3 total revisions
103 requesting all changes
103 requesting all changes
104 adding changesets
104 adding changesets
105 adding manifests
105 adding manifests
106 adding file changes
106 adding file changes
107 added 4 changesets with 5 changes to 2 files
107 added 4 changesets with 5 changes to 2 files
108 updating to branch default
108 updating to branch default
109 2 files updated, 0 files merged, 0 files removed, 0 files unresolved
109 2 files updated, 0 files merged, 0 files removed, 0 files unresolved
110 checking changesets
110 checking changesets
111 checking manifests
111 checking manifests
112 crosschecking files in changesets and manifests
112 crosschecking files in changesets and manifests
113 checking files
113 checking files
114 2 files, 4 changesets, 5 total revisions
114 2 files, 4 changesets, 5 total revisions
115 requesting all changes
115 requesting all changes
116 adding changesets
116 adding changesets
117 adding manifests
117 adding manifests
118 adding file changes
118 adding file changes
119 added 5 changesets with 6 changes to 3 files
119 added 5 changesets with 6 changes to 3 files
120 updating to branch default
120 updating to branch default
121 2 files updated, 0 files merged, 0 files removed, 0 files unresolved
121 2 files updated, 0 files merged, 0 files removed, 0 files unresolved
122 checking changesets
122 checking changesets
123 checking manifests
123 checking manifests
124 crosschecking files in changesets and manifests
124 crosschecking files in changesets and manifests
125 checking files
125 checking files
126 3 files, 5 changesets, 6 total revisions
126 3 files, 5 changesets, 6 total revisions
127 requesting all changes
127 requesting all changes
128 adding changesets
128 adding changesets
129 adding manifests
129 adding manifests
130 adding file changes
130 adding file changes
131 added 5 changesets with 5 changes to 2 files
131 added 5 changesets with 5 changes to 2 files
132 updating to branch default
132 updating to branch default
133 1 files updated, 0 files merged, 0 files removed, 0 files unresolved
133 1 files updated, 0 files merged, 0 files removed, 0 files unresolved
134 checking changesets
134 checking changesets
135 checking manifests
135 checking manifests
136 crosschecking files in changesets and manifests
136 crosschecking files in changesets and manifests
137 checking files
137 checking files
138 2 files, 5 changesets, 5 total revisions
138 2 files, 5 changesets, 5 total revisions
139 pulling from ../test-7
139 pulling from ../test-7
140 searching for changes
140 searching for changes
141 adding changesets
141 adding changesets
142 adding manifests
142 adding manifests
143 adding file changes
143 adding file changes
144 added 4 changesets with 2 changes to 3 files (+1 heads)
144 added 4 changesets with 2 changes to 3 files (+1 heads)
145 (run 'hg heads' to see heads, 'hg merge' to merge)
145 (run 'hg heads' to see heads, 'hg merge' to merge)
146 checking changesets
146 checking changesets
147 checking manifests
147 checking manifests
148 crosschecking files in changesets and manifests
148 crosschecking files in changesets and manifests
149 checking files
149 checking files
150 4 files, 9 changesets, 7 total revisions
150 4 files, 9 changesets, 7 total revisions
151 pulling from http://localhost/
151 pulling from http://localhost:$HGPORT/
152 searching for changes
152 searching for changes
153 adding changesets
153 adding changesets
154 adding manifests
154 adding manifests
155 adding file changes
155 adding file changes
156 added 1 changesets with 0 changes to 1 files (+1 heads)
156 added 1 changesets with 0 changes to 1 files (+1 heads)
157 (run 'hg heads' to see heads, 'hg merge' to merge)
157 (run 'hg heads' to see heads, 'hg merge' to merge)
158 checking changesets
158 checking changesets
159 checking manifests
159 checking manifests
160 crosschecking files in changesets and manifests
160 crosschecking files in changesets and manifests
161 checking files
161 checking files
162 1 files, 3 changesets, 2 total revisions
162 1 files, 3 changesets, 2 total revisions
163 pulling from http://localhost/
163 pulling from http://localhost:$HGPORT/
164 searching for changes
164 searching for changes
165 adding changesets
165 adding changesets
166 adding manifests
166 adding manifests
167 adding file changes
167 adding file changes
168 added 6 changesets with 5 changes to 4 files
168 added 6 changesets with 5 changes to 4 files
169 (run 'hg update' to get a working copy)
169 (run 'hg update' to get a working copy)
170 pulling from http://localhost/
170 pulling from http://localhost:$HGPORT/
171 searching for changes
171 searching for changes
172 adding changesets
172 adding changesets
173 adding manifests
173 adding manifests
174 adding file changes
174 adding file changes
175 added 2 changesets with 0 changes to 1 files (+1 heads)
175 added 2 changesets with 0 changes to 1 files (+1 heads)
176 (run 'hg heads' to see heads, 'hg merge' to merge)
176 (run 'hg heads' to see heads, 'hg merge' to merge)
177 checking changesets
177 checking changesets
178 checking manifests
178 checking manifests
179 crosschecking files in changesets and manifests
179 crosschecking files in changesets and manifests
180 checking files
180 checking files
181 1 files, 5 changesets, 3 total revisions
181 1 files, 5 changesets, 3 total revisions
182 pulling from http://localhost/
182 pulling from http://localhost:$HGPORT/
183 searching for changes
183 searching for changes
184 adding changesets
184 adding changesets
185 adding manifests
185 adding manifests
186 adding file changes
186 adding file changes
187 added 4 changesets with 4 changes to 4 files
187 added 4 changesets with 4 changes to 4 files
188 (run 'hg update' to get a working copy)
188 (run 'hg update' to get a working copy)
189 checking changesets
189 checking changesets
190 checking manifests
190 checking manifests
191 crosschecking files in changesets and manifests
191 crosschecking files in changesets and manifests
192 checking files
192 checking files
193 4 files, 9 changesets, 7 total revisions
193 4 files, 9 changesets, 7 total revisions
@@ -1,47 +1,47
1 adding foo
1 adding foo
2 adding foo.d/bAr.hg.d/BaR
2 adding foo.d/bAr.hg.d/BaR
3 adding foo.d/baR.d.hg/bAR
3 adding foo.d/baR.d.hg/bAR
4 adding foo.d/foo
4 adding foo.d/foo
5 abort: cannot start server at ':20060':
5 abort: cannot start server at ':$HGPORT1':
6 % clone via stream
6 % clone via stream
7 streaming all changes
7 streaming all changes
8 XXX files to transfer, XXX bytes of data
8 XXX files to transfer, XXX bytes of data
9 transferred XXX bytes in XXX seconds (XXX XB/sec)
9 transferred XXX bytes in XXX seconds (XXX XB/sec)
10 updating to branch default
10 updating to branch default
11 XXX files updated, XXX files merged, XXX files removed, XXX files unresolved
11 XXX files updated, XXX files merged, XXX files removed, XXX files unresolved
12 checking changesets
12 checking changesets
13 checking manifests
13 checking manifests
14 crosschecking files in changesets and manifests
14 crosschecking files in changesets and manifests
15 checking files
15 checking files
16 4 files, 1 changesets, 4 total revisions
16 4 files, 1 changesets, 4 total revisions
17 % try to clone via stream, should use pull instead
17 % try to clone via stream, should use pull instead
18 requesting all changes
18 requesting all changes
19 adding changesets
19 adding changesets
20 adding manifests
20 adding manifests
21 adding file changes
21 adding file changes
22 added 1 changesets with 4 changes to 4 files
22 added 1 changesets with 4 changes to 4 files
23 updating to branch default
23 updating to branch default
24 4 files updated, 0 files merged, 0 files removed, 0 files unresolved
24 4 files updated, 0 files merged, 0 files removed, 0 files unresolved
25 % clone via pull
25 % clone via pull
26 requesting all changes
26 requesting all changes
27 adding changesets
27 adding changesets
28 adding manifests
28 adding manifests
29 adding file changes
29 adding file changes
30 added 1 changesets with 4 changes to 4 files
30 added 1 changesets with 4 changes to 4 files
31 updating to branch default
31 updating to branch default
32 4 files updated, 0 files merged, 0 files removed, 0 files unresolved
32 4 files updated, 0 files merged, 0 files removed, 0 files unresolved
33 checking changesets
33 checking changesets
34 checking manifests
34 checking manifests
35 crosschecking files in changesets and manifests
35 crosschecking files in changesets and manifests
36 checking files
36 checking files
37 4 files, 1 changesets, 4 total revisions
37 4 files, 1 changesets, 4 total revisions
38 adding bar
38 adding bar
39 % pull
39 % pull
40 changegroup hook: HG_NODE=5fed3813f7f5e1824344fdc9cf8f63bb662c292d HG_SOURCE=pull HG_URL=http://localhost/
40 changegroup hook: HG_NODE=5fed3813f7f5e1824344fdc9cf8f63bb662c292d HG_SOURCE=pull HG_URL=http://localhost:$HGPORT1/
41 pulling from http://localhost/
41 pulling from http://localhost:$HGPORT1/
42 searching for changes
42 searching for changes
43 adding changesets
43 adding changesets
44 adding manifests
44 adding manifests
45 adding file changes
45 adding file changes
46 added 1 changesets with 1 changes to 1 files
46 added 1 changesets with 1 changes to 1 files
47 (run 'hg update' to get a working copy)
47 (run 'hg update' to get a working copy)
@@ -1,54 +1,54
1 #!/bin/sh
1 #!/bin/sh
2
2
3 mkdir test
3 mkdir test
4 cd test
4 cd test
5 hg init
5 hg init
6 for i in 0 1 2 3 4 5 6 7 8; do
6 for i in 0 1 2 3 4 5 6 7 8; do
7 echo $i >> foo
7 echo $i >> foo
8 hg commit -A -m $i -d "1000000 0"
8 hg commit -A -m $i -d "1000000 0"
9 done
9 done
10 hg verify
10 hg verify
11 hg serve -p $HGPORT -d --pid-file=hg.pid
11 hg serve -p $HGPORT -d --pid-file=hg.pid
12 cat hg.pid >> $DAEMON_PIDS
12 cat hg.pid >> $DAEMON_PIDS
13 cd ..
13 cd ..
14
14
15 hg init new
15 hg init new
16 # http incoming
16 # http incoming
17 hg -R new incoming http://localhost:$HGPORT/ | sed -e 's,:[0-9][0-9]*/,/,'
17 hg -R new incoming http://localhost:$HGPORT/ | sed -e "s,:$HGPORT/,:\$HGPORT/,"
18 hg -R new incoming -r 4 http://localhost:$HGPORT/ | sed -e 's,:[0-9][0-9]*/,/,'
18 hg -R new incoming -r 4 http://localhost:$HGPORT/ | sed -e "s,:$HGPORT/,:\$HGPORT/,"
19 # local incoming
19 # local incoming
20 hg -R new incoming test
20 hg -R new incoming test
21 hg -R new incoming -r 4 test
21 hg -R new incoming -r 4 test
22 echo "% limit to 2 changesets"
22 echo "% limit to 2 changesets"
23 hg -R new incoming -l 2 test
23 hg -R new incoming -l 2 test
24 echo "% limit to 2 changesets, test with -p --git"
24 echo "% limit to 2 changesets, test with -p --git"
25 hg -R new incoming -l 2 -p --git test
25 hg -R new incoming -l 2 -p --git test
26
26
27 # test with --bundle
27 # test with --bundle
28 hg -R new incoming --bundle test.hg http://localhost:$HGPORT/ | sed -e 's,:[0-9][0-9]*/,/,'
28 hg -R new incoming --bundle test.hg http://localhost:$HGPORT/ | sed -e "s,:$HGPORT/,:\$HGPORT/,"
29 hg -R new incoming --bundle test2.hg test
29 hg -R new incoming --bundle test2.hg test
30
30
31 # test the resulting bundles
31 # test the resulting bundles
32 hg init temp
32 hg init temp
33 hg init temp2
33 hg init temp2
34 hg -R temp unbundle test.hg
34 hg -R temp unbundle test.hg
35 hg -R temp2 unbundle test2.hg
35 hg -R temp2 unbundle test2.hg
36 hg -R temp tip
36 hg -R temp tip
37 hg -R temp2 tip
37 hg -R temp2 tip
38
38
39 rm -r temp temp2 new
39 rm -r temp temp2 new
40
40
41 # test outgoing
41 # test outgoing
42 hg clone test test-dev
42 hg clone test test-dev
43 cd test-dev
43 cd test-dev
44 for i in 9 10 11 12 13; do
44 for i in 9 10 11 12 13; do
45 echo $i >> foo
45 echo $i >> foo
46 hg commit -A -m $i -d "1000000 0"
46 hg commit -A -m $i -d "1000000 0"
47 done
47 done
48 hg verify
48 hg verify
49 cd ..
49 cd ..
50 hg -R test-dev outgoing test
50 hg -R test-dev outgoing test
51 echo "% limit to 3 changesets"
51 echo "% limit to 3 changesets"
52 hg -R test-dev outgoing -l 3 test
52 hg -R test-dev outgoing -l 3 test
53 hg -R test-dev outgoing http://localhost:$HGPORT/ | sed -e 's,:[0-9][0-9]*/,/,'
53 hg -R test-dev outgoing http://localhost:$HGPORT/ | sed -e "s,:$HGPORT/,:\$HGPORT/,"
54 hg -R test-dev outgoing -r 11 http://localhost:$HGPORT/ | sed -e 's,:[0-9][0-9]*/,/,'
54 hg -R test-dev outgoing -r 11 http://localhost:$HGPORT/ | sed -e "s,:$HGPORT/,:\$HGPORT/,"
@@ -1,405 +1,405
1 adding foo
1 adding foo
2 checking changesets
2 checking changesets
3 checking manifests
3 checking manifests
4 crosschecking files in changesets and manifests
4 crosschecking files in changesets and manifests
5 checking files
5 checking files
6 1 files, 9 changesets, 9 total revisions
6 1 files, 9 changesets, 9 total revisions
7 comparing with http://localhost/
7 comparing with http://localhost:$HGPORT/
8 changeset: 0:9cb21d99fe27
8 changeset: 0:9cb21d99fe27
9 user: test
9 user: test
10 date: Mon Jan 12 13:46:40 1970 +0000
10 date: Mon Jan 12 13:46:40 1970 +0000
11 summary: 0
11 summary: 0
12
12
13 changeset: 1:d717f5dfad6a
13 changeset: 1:d717f5dfad6a
14 user: test
14 user: test
15 date: Mon Jan 12 13:46:40 1970 +0000
15 date: Mon Jan 12 13:46:40 1970 +0000
16 summary: 1
16 summary: 1
17
17
18 changeset: 2:c0d6b86da426
18 changeset: 2:c0d6b86da426
19 user: test
19 user: test
20 date: Mon Jan 12 13:46:40 1970 +0000
20 date: Mon Jan 12 13:46:40 1970 +0000
21 summary: 2
21 summary: 2
22
22
23 changeset: 3:dfacbd43b3fe
23 changeset: 3:dfacbd43b3fe
24 user: test
24 user: test
25 date: Mon Jan 12 13:46:40 1970 +0000
25 date: Mon Jan 12 13:46:40 1970 +0000
26 summary: 3
26 summary: 3
27
27
28 changeset: 4:1f3a964b6022
28 changeset: 4:1f3a964b6022
29 user: test
29 user: test
30 date: Mon Jan 12 13:46:40 1970 +0000
30 date: Mon Jan 12 13:46:40 1970 +0000
31 summary: 4
31 summary: 4
32
32
33 changeset: 5:c028bcc7a28a
33 changeset: 5:c028bcc7a28a
34 user: test
34 user: test
35 date: Mon Jan 12 13:46:40 1970 +0000
35 date: Mon Jan 12 13:46:40 1970 +0000
36 summary: 5
36 summary: 5
37
37
38 changeset: 6:a0c0095f3389
38 changeset: 6:a0c0095f3389
39 user: test
39 user: test
40 date: Mon Jan 12 13:46:40 1970 +0000
40 date: Mon Jan 12 13:46:40 1970 +0000
41 summary: 6
41 summary: 6
42
42
43 changeset: 7:d4be65f4e891
43 changeset: 7:d4be65f4e891
44 user: test
44 user: test
45 date: Mon Jan 12 13:46:40 1970 +0000
45 date: Mon Jan 12 13:46:40 1970 +0000
46 summary: 7
46 summary: 7
47
47
48 changeset: 8:92b83e334ef8
48 changeset: 8:92b83e334ef8
49 tag: tip
49 tag: tip
50 user: test
50 user: test
51 date: Mon Jan 12 13:46:40 1970 +0000
51 date: Mon Jan 12 13:46:40 1970 +0000
52 summary: 8
52 summary: 8
53
53
54 comparing with http://localhost/
54 comparing with http://localhost:$HGPORT/
55 changeset: 0:9cb21d99fe27
55 changeset: 0:9cb21d99fe27
56 user: test
56 user: test
57 date: Mon Jan 12 13:46:40 1970 +0000
57 date: Mon Jan 12 13:46:40 1970 +0000
58 summary: 0
58 summary: 0
59
59
60 changeset: 1:d717f5dfad6a
60 changeset: 1:d717f5dfad6a
61 user: test
61 user: test
62 date: Mon Jan 12 13:46:40 1970 +0000
62 date: Mon Jan 12 13:46:40 1970 +0000
63 summary: 1
63 summary: 1
64
64
65 changeset: 2:c0d6b86da426
65 changeset: 2:c0d6b86da426
66 user: test
66 user: test
67 date: Mon Jan 12 13:46:40 1970 +0000
67 date: Mon Jan 12 13:46:40 1970 +0000
68 summary: 2
68 summary: 2
69
69
70 changeset: 3:dfacbd43b3fe
70 changeset: 3:dfacbd43b3fe
71 user: test
71 user: test
72 date: Mon Jan 12 13:46:40 1970 +0000
72 date: Mon Jan 12 13:46:40 1970 +0000
73 summary: 3
73 summary: 3
74
74
75 changeset: 4:1f3a964b6022
75 changeset: 4:1f3a964b6022
76 tag: tip
76 tag: tip
77 user: test
77 user: test
78 date: Mon Jan 12 13:46:40 1970 +0000
78 date: Mon Jan 12 13:46:40 1970 +0000
79 summary: 4
79 summary: 4
80
80
81 comparing with test
81 comparing with test
82 changeset: 0:9cb21d99fe27
82 changeset: 0:9cb21d99fe27
83 user: test
83 user: test
84 date: Mon Jan 12 13:46:40 1970 +0000
84 date: Mon Jan 12 13:46:40 1970 +0000
85 summary: 0
85 summary: 0
86
86
87 changeset: 1:d717f5dfad6a
87 changeset: 1:d717f5dfad6a
88 user: test
88 user: test
89 date: Mon Jan 12 13:46:40 1970 +0000
89 date: Mon Jan 12 13:46:40 1970 +0000
90 summary: 1
90 summary: 1
91
91
92 changeset: 2:c0d6b86da426
92 changeset: 2:c0d6b86da426
93 user: test
93 user: test
94 date: Mon Jan 12 13:46:40 1970 +0000
94 date: Mon Jan 12 13:46:40 1970 +0000
95 summary: 2
95 summary: 2
96
96
97 changeset: 3:dfacbd43b3fe
97 changeset: 3:dfacbd43b3fe
98 user: test
98 user: test
99 date: Mon Jan 12 13:46:40 1970 +0000
99 date: Mon Jan 12 13:46:40 1970 +0000
100 summary: 3
100 summary: 3
101
101
102 changeset: 4:1f3a964b6022
102 changeset: 4:1f3a964b6022
103 user: test
103 user: test
104 date: Mon Jan 12 13:46:40 1970 +0000
104 date: Mon Jan 12 13:46:40 1970 +0000
105 summary: 4
105 summary: 4
106
106
107 changeset: 5:c028bcc7a28a
107 changeset: 5:c028bcc7a28a
108 user: test
108 user: test
109 date: Mon Jan 12 13:46:40 1970 +0000
109 date: Mon Jan 12 13:46:40 1970 +0000
110 summary: 5
110 summary: 5
111
111
112 changeset: 6:a0c0095f3389
112 changeset: 6:a0c0095f3389
113 user: test
113 user: test
114 date: Mon Jan 12 13:46:40 1970 +0000
114 date: Mon Jan 12 13:46:40 1970 +0000
115 summary: 6
115 summary: 6
116
116
117 changeset: 7:d4be65f4e891
117 changeset: 7:d4be65f4e891
118 user: test
118 user: test
119 date: Mon Jan 12 13:46:40 1970 +0000
119 date: Mon Jan 12 13:46:40 1970 +0000
120 summary: 7
120 summary: 7
121
121
122 changeset: 8:92b83e334ef8
122 changeset: 8:92b83e334ef8
123 tag: tip
123 tag: tip
124 user: test
124 user: test
125 date: Mon Jan 12 13:46:40 1970 +0000
125 date: Mon Jan 12 13:46:40 1970 +0000
126 summary: 8
126 summary: 8
127
127
128 comparing with test
128 comparing with test
129 changeset: 0:9cb21d99fe27
129 changeset: 0:9cb21d99fe27
130 user: test
130 user: test
131 date: Mon Jan 12 13:46:40 1970 +0000
131 date: Mon Jan 12 13:46:40 1970 +0000
132 summary: 0
132 summary: 0
133
133
134 changeset: 1:d717f5dfad6a
134 changeset: 1:d717f5dfad6a
135 user: test
135 user: test
136 date: Mon Jan 12 13:46:40 1970 +0000
136 date: Mon Jan 12 13:46:40 1970 +0000
137 summary: 1
137 summary: 1
138
138
139 changeset: 2:c0d6b86da426
139 changeset: 2:c0d6b86da426
140 user: test
140 user: test
141 date: Mon Jan 12 13:46:40 1970 +0000
141 date: Mon Jan 12 13:46:40 1970 +0000
142 summary: 2
142 summary: 2
143
143
144 changeset: 3:dfacbd43b3fe
144 changeset: 3:dfacbd43b3fe
145 user: test
145 user: test
146 date: Mon Jan 12 13:46:40 1970 +0000
146 date: Mon Jan 12 13:46:40 1970 +0000
147 summary: 3
147 summary: 3
148
148
149 changeset: 4:1f3a964b6022
149 changeset: 4:1f3a964b6022
150 user: test
150 user: test
151 date: Mon Jan 12 13:46:40 1970 +0000
151 date: Mon Jan 12 13:46:40 1970 +0000
152 summary: 4
152 summary: 4
153
153
154 % limit to 2 changesets
154 % limit to 2 changesets
155 comparing with test
155 comparing with test
156 changeset: 0:9cb21d99fe27
156 changeset: 0:9cb21d99fe27
157 user: test
157 user: test
158 date: Mon Jan 12 13:46:40 1970 +0000
158 date: Mon Jan 12 13:46:40 1970 +0000
159 summary: 0
159 summary: 0
160
160
161 changeset: 1:d717f5dfad6a
161 changeset: 1:d717f5dfad6a
162 user: test
162 user: test
163 date: Mon Jan 12 13:46:40 1970 +0000
163 date: Mon Jan 12 13:46:40 1970 +0000
164 summary: 1
164 summary: 1
165
165
166 % limit to 2 changesets, test with -p --git
166 % limit to 2 changesets, test with -p --git
167 comparing with test
167 comparing with test
168 changeset: 0:9cb21d99fe27
168 changeset: 0:9cb21d99fe27
169 user: test
169 user: test
170 date: Mon Jan 12 13:46:40 1970 +0000
170 date: Mon Jan 12 13:46:40 1970 +0000
171 summary: 0
171 summary: 0
172
172
173 diff --git a/foo b/foo
173 diff --git a/foo b/foo
174 new file mode 100644
174 new file mode 100644
175 --- /dev/null
175 --- /dev/null
176 +++ b/foo
176 +++ b/foo
177 @@ -0,0 +1,1 @@
177 @@ -0,0 +1,1 @@
178 +0
178 +0
179
179
180 changeset: 1:d717f5dfad6a
180 changeset: 1:d717f5dfad6a
181 user: test
181 user: test
182 date: Mon Jan 12 13:46:40 1970 +0000
182 date: Mon Jan 12 13:46:40 1970 +0000
183 summary: 1
183 summary: 1
184
184
185 diff --git a/foo b/foo
185 diff --git a/foo b/foo
186 --- a/foo
186 --- a/foo
187 +++ b/foo
187 +++ b/foo
188 @@ -1,1 +1,2 @@
188 @@ -1,1 +1,2 @@
189 0
189 0
190 +1
190 +1
191
191
192 comparing with http://localhost/
192 comparing with http://localhost:$HGPORT/
193 changeset: 0:9cb21d99fe27
193 changeset: 0:9cb21d99fe27
194 user: test
194 user: test
195 date: Mon Jan 12 13:46:40 1970 +0000
195 date: Mon Jan 12 13:46:40 1970 +0000
196 summary: 0
196 summary: 0
197
197
198 changeset: 1:d717f5dfad6a
198 changeset: 1:d717f5dfad6a
199 user: test
199 user: test
200 date: Mon Jan 12 13:46:40 1970 +0000
200 date: Mon Jan 12 13:46:40 1970 +0000
201 summary: 1
201 summary: 1
202
202
203 changeset: 2:c0d6b86da426
203 changeset: 2:c0d6b86da426
204 user: test
204 user: test
205 date: Mon Jan 12 13:46:40 1970 +0000
205 date: Mon Jan 12 13:46:40 1970 +0000
206 summary: 2
206 summary: 2
207
207
208 changeset: 3:dfacbd43b3fe
208 changeset: 3:dfacbd43b3fe
209 user: test
209 user: test
210 date: Mon Jan 12 13:46:40 1970 +0000
210 date: Mon Jan 12 13:46:40 1970 +0000
211 summary: 3
211 summary: 3
212
212
213 changeset: 4:1f3a964b6022
213 changeset: 4:1f3a964b6022
214 user: test
214 user: test
215 date: Mon Jan 12 13:46:40 1970 +0000
215 date: Mon Jan 12 13:46:40 1970 +0000
216 summary: 4
216 summary: 4
217
217
218 changeset: 5:c028bcc7a28a
218 changeset: 5:c028bcc7a28a
219 user: test
219 user: test
220 date: Mon Jan 12 13:46:40 1970 +0000
220 date: Mon Jan 12 13:46:40 1970 +0000
221 summary: 5
221 summary: 5
222
222
223 changeset: 6:a0c0095f3389
223 changeset: 6:a0c0095f3389
224 user: test
224 user: test
225 date: Mon Jan 12 13:46:40 1970 +0000
225 date: Mon Jan 12 13:46:40 1970 +0000
226 summary: 6
226 summary: 6
227
227
228 changeset: 7:d4be65f4e891
228 changeset: 7:d4be65f4e891
229 user: test
229 user: test
230 date: Mon Jan 12 13:46:40 1970 +0000
230 date: Mon Jan 12 13:46:40 1970 +0000
231 summary: 7
231 summary: 7
232
232
233 changeset: 8:92b83e334ef8
233 changeset: 8:92b83e334ef8
234 tag: tip
234 tag: tip
235 user: test
235 user: test
236 date: Mon Jan 12 13:46:40 1970 +0000
236 date: Mon Jan 12 13:46:40 1970 +0000
237 summary: 8
237 summary: 8
238
238
239 comparing with test
239 comparing with test
240 changeset: 0:9cb21d99fe27
240 changeset: 0:9cb21d99fe27
241 user: test
241 user: test
242 date: Mon Jan 12 13:46:40 1970 +0000
242 date: Mon Jan 12 13:46:40 1970 +0000
243 summary: 0
243 summary: 0
244
244
245 changeset: 1:d717f5dfad6a
245 changeset: 1:d717f5dfad6a
246 user: test
246 user: test
247 date: Mon Jan 12 13:46:40 1970 +0000
247 date: Mon Jan 12 13:46:40 1970 +0000
248 summary: 1
248 summary: 1
249
249
250 changeset: 2:c0d6b86da426
250 changeset: 2:c0d6b86da426
251 user: test
251 user: test
252 date: Mon Jan 12 13:46:40 1970 +0000
252 date: Mon Jan 12 13:46:40 1970 +0000
253 summary: 2
253 summary: 2
254
254
255 changeset: 3:dfacbd43b3fe
255 changeset: 3:dfacbd43b3fe
256 user: test
256 user: test
257 date: Mon Jan 12 13:46:40 1970 +0000
257 date: Mon Jan 12 13:46:40 1970 +0000
258 summary: 3
258 summary: 3
259
259
260 changeset: 4:1f3a964b6022
260 changeset: 4:1f3a964b6022
261 user: test
261 user: test
262 date: Mon Jan 12 13:46:40 1970 +0000
262 date: Mon Jan 12 13:46:40 1970 +0000
263 summary: 4
263 summary: 4
264
264
265 changeset: 5:c028bcc7a28a
265 changeset: 5:c028bcc7a28a
266 user: test
266 user: test
267 date: Mon Jan 12 13:46:40 1970 +0000
267 date: Mon Jan 12 13:46:40 1970 +0000
268 summary: 5
268 summary: 5
269
269
270 changeset: 6:a0c0095f3389
270 changeset: 6:a0c0095f3389
271 user: test
271 user: test
272 date: Mon Jan 12 13:46:40 1970 +0000
272 date: Mon Jan 12 13:46:40 1970 +0000
273 summary: 6
273 summary: 6
274
274
275 changeset: 7:d4be65f4e891
275 changeset: 7:d4be65f4e891
276 user: test
276 user: test
277 date: Mon Jan 12 13:46:40 1970 +0000
277 date: Mon Jan 12 13:46:40 1970 +0000
278 summary: 7
278 summary: 7
279
279
280 changeset: 8:92b83e334ef8
280 changeset: 8:92b83e334ef8
281 tag: tip
281 tag: tip
282 user: test
282 user: test
283 date: Mon Jan 12 13:46:40 1970 +0000
283 date: Mon Jan 12 13:46:40 1970 +0000
284 summary: 8
284 summary: 8
285
285
286 adding changesets
286 adding changesets
287 adding manifests
287 adding manifests
288 adding file changes
288 adding file changes
289 added 9 changesets with 9 changes to 1 files
289 added 9 changesets with 9 changes to 1 files
290 (run 'hg update' to get a working copy)
290 (run 'hg update' to get a working copy)
291 adding changesets
291 adding changesets
292 adding manifests
292 adding manifests
293 adding file changes
293 adding file changes
294 added 9 changesets with 9 changes to 1 files
294 added 9 changesets with 9 changes to 1 files
295 (run 'hg update' to get a working copy)
295 (run 'hg update' to get a working copy)
296 changeset: 8:92b83e334ef8
296 changeset: 8:92b83e334ef8
297 tag: tip
297 tag: tip
298 user: test
298 user: test
299 date: Mon Jan 12 13:46:40 1970 +0000
299 date: Mon Jan 12 13:46:40 1970 +0000
300 summary: 8
300 summary: 8
301
301
302 changeset: 8:92b83e334ef8
302 changeset: 8:92b83e334ef8
303 tag: tip
303 tag: tip
304 user: test
304 user: test
305 date: Mon Jan 12 13:46:40 1970 +0000
305 date: Mon Jan 12 13:46:40 1970 +0000
306 summary: 8
306 summary: 8
307
307
308 updating to branch default
308 updating to branch default
309 1 files updated, 0 files merged, 0 files removed, 0 files unresolved
309 1 files updated, 0 files merged, 0 files removed, 0 files unresolved
310 checking changesets
310 checking changesets
311 checking manifests
311 checking manifests
312 crosschecking files in changesets and manifests
312 crosschecking files in changesets and manifests
313 checking files
313 checking files
314 1 files, 14 changesets, 14 total revisions
314 1 files, 14 changesets, 14 total revisions
315 comparing with test
315 comparing with test
316 searching for changes
316 searching for changes
317 changeset: 9:3741c3ad1096
317 changeset: 9:3741c3ad1096
318 user: test
318 user: test
319 date: Mon Jan 12 13:46:40 1970 +0000
319 date: Mon Jan 12 13:46:40 1970 +0000
320 summary: 9
320 summary: 9
321
321
322 changeset: 10:de4143c8d9a5
322 changeset: 10:de4143c8d9a5
323 user: test
323 user: test
324 date: Mon Jan 12 13:46:40 1970 +0000
324 date: Mon Jan 12 13:46:40 1970 +0000
325 summary: 10
325 summary: 10
326
326
327 changeset: 11:0e1c188b9a7a
327 changeset: 11:0e1c188b9a7a
328 user: test
328 user: test
329 date: Mon Jan 12 13:46:40 1970 +0000
329 date: Mon Jan 12 13:46:40 1970 +0000
330 summary: 11
330 summary: 11
331
331
332 changeset: 12:251354d0fdd3
332 changeset: 12:251354d0fdd3
333 user: test
333 user: test
334 date: Mon Jan 12 13:46:40 1970 +0000
334 date: Mon Jan 12 13:46:40 1970 +0000
335 summary: 12
335 summary: 12
336
336
337 changeset: 13:bdaadd969642
337 changeset: 13:bdaadd969642
338 tag: tip
338 tag: tip
339 user: test
339 user: test
340 date: Mon Jan 12 13:46:40 1970 +0000
340 date: Mon Jan 12 13:46:40 1970 +0000
341 summary: 13
341 summary: 13
342
342
343 % limit to 3 changesets
343 % limit to 3 changesets
344 comparing with test
344 comparing with test
345 searching for changes
345 searching for changes
346 changeset: 9:3741c3ad1096
346 changeset: 9:3741c3ad1096
347 user: test
347 user: test
348 date: Mon Jan 12 13:46:40 1970 +0000
348 date: Mon Jan 12 13:46:40 1970 +0000
349 summary: 9
349 summary: 9
350
350
351 changeset: 10:de4143c8d9a5
351 changeset: 10:de4143c8d9a5
352 user: test
352 user: test
353 date: Mon Jan 12 13:46:40 1970 +0000
353 date: Mon Jan 12 13:46:40 1970 +0000
354 summary: 10
354 summary: 10
355
355
356 changeset: 11:0e1c188b9a7a
356 changeset: 11:0e1c188b9a7a
357 user: test
357 user: test
358 date: Mon Jan 12 13:46:40 1970 +0000
358 date: Mon Jan 12 13:46:40 1970 +0000
359 summary: 11
359 summary: 11
360
360
361 comparing with http://localhost/
361 comparing with http://localhost:$HGPORT/
362 searching for changes
362 searching for changes
363 changeset: 9:3741c3ad1096
363 changeset: 9:3741c3ad1096
364 user: test
364 user: test
365 date: Mon Jan 12 13:46:40 1970 +0000
365 date: Mon Jan 12 13:46:40 1970 +0000
366 summary: 9
366 summary: 9
367
367
368 changeset: 10:de4143c8d9a5
368 changeset: 10:de4143c8d9a5
369 user: test
369 user: test
370 date: Mon Jan 12 13:46:40 1970 +0000
370 date: Mon Jan 12 13:46:40 1970 +0000
371 summary: 10
371 summary: 10
372
372
373 changeset: 11:0e1c188b9a7a
373 changeset: 11:0e1c188b9a7a
374 user: test
374 user: test
375 date: Mon Jan 12 13:46:40 1970 +0000
375 date: Mon Jan 12 13:46:40 1970 +0000
376 summary: 11
376 summary: 11
377
377
378 changeset: 12:251354d0fdd3
378 changeset: 12:251354d0fdd3
379 user: test
379 user: test
380 date: Mon Jan 12 13:46:40 1970 +0000
380 date: Mon Jan 12 13:46:40 1970 +0000
381 summary: 12
381 summary: 12
382
382
383 changeset: 13:bdaadd969642
383 changeset: 13:bdaadd969642
384 tag: tip
384 tag: tip
385 user: test
385 user: test
386 date: Mon Jan 12 13:46:40 1970 +0000
386 date: Mon Jan 12 13:46:40 1970 +0000
387 summary: 13
387 summary: 13
388
388
389 comparing with http://localhost/
389 comparing with http://localhost:$HGPORT/
390 searching for changes
390 searching for changes
391 changeset: 9:3741c3ad1096
391 changeset: 9:3741c3ad1096
392 user: test
392 user: test
393 date: Mon Jan 12 13:46:40 1970 +0000
393 date: Mon Jan 12 13:46:40 1970 +0000
394 summary: 9
394 summary: 9
395
395
396 changeset: 10:de4143c8d9a5
396 changeset: 10:de4143c8d9a5
397 user: test
397 user: test
398 date: Mon Jan 12 13:46:40 1970 +0000
398 date: Mon Jan 12 13:46:40 1970 +0000
399 summary: 10
399 summary: 10
400
400
401 changeset: 11:0e1c188b9a7a
401 changeset: 11:0e1c188b9a7a
402 user: test
402 user: test
403 date: Mon Jan 12 13:46:40 1970 +0000
403 date: Mon Jan 12 13:46:40 1970 +0000
404 summary: 11
404 summary: 11
405
405
@@ -1,31 +1,31
1 #!/bin/sh
1 #!/bin/sh
2
2
3 mkdir test
3 mkdir test
4 cd test
4 cd test
5 echo foo>foo
5 echo foo>foo
6 hg init
6 hg init
7 hg addremove
7 hg addremove
8 hg commit -m 1
8 hg commit -m 1
9 hg verify
9 hg verify
10 hg serve -p $HGPORT -d --pid-file=hg.pid
10 hg serve -p $HGPORT -d --pid-file=hg.pid
11 cat hg.pid >> $DAEMON_PIDS
11 cat hg.pid >> $DAEMON_PIDS
12 cd ..
12 cd ..
13
13
14 hg clone --pull http://localhost:$HGPORT/ copy | sed -e 's,:[0-9][0-9]*/,/,'
14 hg clone --pull http://localhost:$HGPORT/ copy | sed -e "s,:$HGPORT/,:\$HGPORT/,"
15 cd copy
15 cd copy
16 hg verify
16 hg verify
17 hg co
17 hg co
18 cat foo
18 cat foo
19 hg manifest --debug
19 hg manifest --debug
20 hg pull | sed -e 's,:[0-9][0-9]*/,/,'
20 hg pull | sed -e "s,:$HGPORT/,:\$HGPORT/,"
21
21
22 echo % issue 622
22 echo % issue 622
23 cd ..
23 cd ..
24 hg init empty
24 hg init empty
25 cd empty
25 cd empty
26 hg pull -u ../test
26 hg pull -u ../test
27
27
28 echo % test file: uri handling
28 echo % test file: uri handling
29 hg pull -q file://../test-doesnt-exist
29 hg pull -q file://../test-doesnt-exist
30 hg pull -q file:../test
30 hg pull -q file:../test
31 hg pull -q file://foobar`pwd`/../test
31 hg pull -q file://foobar`pwd`/../test
@@ -1,36 +1,36
1 #!/bin/sh
1 #!/bin/sh
2
2
3 cp "$TESTDIR"/printenv.py .
3 cp "$TESTDIR"/printenv.py .
4
4
5 hg init test
5 hg init test
6 cd test
6 cd test
7 echo a > a
7 echo a > a
8 hg ci -Ama
8 hg ci -Ama
9
9
10 cd ..
10 cd ..
11 hg clone test test2
11 hg clone test test2
12 cd test2
12 cd test2
13 echo a >> a
13 echo a >> a
14 hg ci -mb
14 hg ci -mb
15
15
16 echo % expect error, cloning not allowed
16 echo % expect error, cloning not allowed
17 echo '[web]' > .hg/hgrc
17 echo '[web]' > .hg/hgrc
18 echo 'allowpull = false' >> .hg/hgrc
18 echo 'allowpull = false' >> .hg/hgrc
19 hg serve -p $HGPORT -d --pid-file=hg.pid -E errors.log
19 hg serve -p $HGPORT -d --pid-file=hg.pid -E errors.log
20 cat hg.pid >> $DAEMON_PIDS
20 cat hg.pid >> $DAEMON_PIDS
21 hg clone http://localhost:$HGPORT/ test3 | sed -e 's,:[0-9][0-9]*/,/,'
21 hg clone http://localhost:$HGPORT/ test3 | sed -e "s,:$HGPORT/,:\$HGPORT/,"
22 "$TESTDIR/killdaemons.py"
22 "$TESTDIR/killdaemons.py"
23 echo % serve errors
23 echo % serve errors
24 cat errors.log
24 cat errors.log
25
25
26 req() {
26 req() {
27 hg serve -p $HGPORT -d --pid-file=hg.pid -E errors.log
27 hg serve -p $HGPORT -d --pid-file=hg.pid -E errors.log
28 cat hg.pid >> $DAEMON_PIDS
28 cat hg.pid >> $DAEMON_PIDS
29 hg --cwd ../test pull http://localhost:$HGPORT/ | sed -e 's,:[0-9][0-9]*/,/,'
29 hg --cwd ../test pull http://localhost:$HGPORT/ | sed -e "s,:$HGPORT/,:\$HGPORT/,"
30 kill `cat hg.pid`
30 kill `cat hg.pid`
31 echo % serve errors
31 echo % serve errors
32 cat errors.log
32 cat errors.log
33 }
33 }
34
34
35 echo % expect error, pulling not allowed
35 echo % expect error, pulling not allowed
36 req
36 req
@@ -1,12 +1,12
1 adding a
1 adding a
2 updating to branch default
2 updating to branch default
3 1 files updated, 0 files merged, 0 files removed, 0 files unresolved
3 1 files updated, 0 files merged, 0 files removed, 0 files unresolved
4 % expect error, cloning not allowed
4 % expect error, cloning not allowed
5 abort: authorization failed
5 abort: authorization failed
6 requesting all changes
6 requesting all changes
7 % serve errors
7 % serve errors
8 % expect error, pulling not allowed
8 % expect error, pulling not allowed
9 abort: authorization failed
9 abort: authorization failed
10 pulling from http://localhost/
10 pulling from http://localhost:$HGPORT/
11 searching for changes
11 searching for changes
12 % serve errors
12 % serve errors
@@ -1,34 +1,34
1 adding foo
1 adding foo
2 checking changesets
2 checking changesets
3 checking manifests
3 checking manifests
4 crosschecking files in changesets and manifests
4 crosschecking files in changesets and manifests
5 checking files
5 checking files
6 1 files, 1 changesets, 1 total revisions
6 1 files, 1 changesets, 1 total revisions
7 requesting all changes
7 requesting all changes
8 adding changesets
8 adding changesets
9 adding manifests
9 adding manifests
10 adding file changes
10 adding file changes
11 added 1 changesets with 1 changes to 1 files
11 added 1 changesets with 1 changes to 1 files
12 updating to branch default
12 updating to branch default
13 1 files updated, 0 files merged, 0 files removed, 0 files unresolved
13 1 files updated, 0 files merged, 0 files removed, 0 files unresolved
14 checking changesets
14 checking changesets
15 checking manifests
15 checking manifests
16 crosschecking files in changesets and manifests
16 crosschecking files in changesets and manifests
17 checking files
17 checking files
18 1 files, 1 changesets, 1 total revisions
18 1 files, 1 changesets, 1 total revisions
19 0 files updated, 0 files merged, 0 files removed, 0 files unresolved
19 0 files updated, 0 files merged, 0 files removed, 0 files unresolved
20 foo
20 foo
21 2ed2a3912a0b24502043eae84ee4b279c18b90dd 644 foo
21 2ed2a3912a0b24502043eae84ee4b279c18b90dd 644 foo
22 pulling from http://localhost/
22 pulling from http://localhost:$HGPORT/
23 searching for changes
23 searching for changes
24 no changes found
24 no changes found
25 % issue 622
25 % issue 622
26 pulling from ../test
26 pulling from ../test
27 requesting all changes
27 requesting all changes
28 adding changesets
28 adding changesets
29 adding manifests
29 adding manifests
30 adding file changes
30 adding file changes
31 added 1 changesets with 1 changes to 1 files
31 added 1 changesets with 1 changes to 1 files
32 1 files updated, 0 files merged, 0 files removed, 0 files unresolved
32 1 files updated, 0 files merged, 0 files removed, 0 files unresolved
33 % test file: uri handling
33 % test file: uri handling
34 abort: repository /test-doesnt-exist not found!
34 abort: repository /test-doesnt-exist not found!
@@ -1,56 +1,56
1 #!/bin/sh
1 #!/bin/sh
2
2
3 cp "$TESTDIR"/printenv.py .
3 cp "$TESTDIR"/printenv.py .
4
4
5 hg init test
5 hg init test
6 cd test
6 cd test
7 echo a > a
7 echo a > a
8 hg ci -Ama
8 hg ci -Ama
9
9
10 cd ..
10 cd ..
11 hg clone test test2
11 hg clone test test2
12 cd test2
12 cd test2
13 echo a >> a
13 echo a >> a
14 hg ci -mb
14 hg ci -mb
15
15
16 req() {
16 req() {
17 hg serve -p $HGPORT -d --pid-file=hg.pid -E errors.log
17 hg serve -p $HGPORT -d --pid-file=hg.pid -E errors.log
18 cat hg.pid >> $DAEMON_PIDS
18 cat hg.pid >> $DAEMON_PIDS
19 hg --cwd ../test2 push http://localhost:$HGPORT/ | sed -e 's,:[0-9][0-9]*/,/,'
19 hg --cwd ../test2 push http://localhost:$HGPORT/ | sed -e "s,:$HGPORT/,:\$HGPORT/,"
20 kill `cat hg.pid`
20 kill `cat hg.pid`
21 echo % serve errors
21 echo % serve errors
22 cat errors.log
22 cat errors.log
23 }
23 }
24
24
25 cd ../test
25 cd ../test
26
26
27 echo % expect ssl error
27 echo % expect ssl error
28 req
28 req
29
29
30 echo % expect authorization error
30 echo % expect authorization error
31 echo '[web]' > .hg/hgrc
31 echo '[web]' > .hg/hgrc
32 echo 'push_ssl = false' >> .hg/hgrc
32 echo 'push_ssl = false' >> .hg/hgrc
33 req
33 req
34
34
35 echo % expect authorization error: must have authorized user
35 echo % expect authorization error: must have authorized user
36 echo 'allow_push = unperson' >> .hg/hgrc
36 echo 'allow_push = unperson' >> .hg/hgrc
37 req
37 req
38
38
39 echo % expect success
39 echo % expect success
40 echo 'allow_push = *' >> .hg/hgrc
40 echo 'allow_push = *' >> .hg/hgrc
41 echo '[hooks]' >> .hg/hgrc
41 echo '[hooks]' >> .hg/hgrc
42 echo 'changegroup = python ../printenv.py changegroup 0 ../urls' >> .hg/hgrc
42 echo 'changegroup = python ../printenv.py changegroup 0 ../urls' >> .hg/hgrc
43 req
43 req
44
44
45 cat ../urls
45 cat ../urls
46
46
47 hg rollback
47 hg rollback
48 echo % expect authorization error: all users denied
48 echo % expect authorization error: all users denied
49 echo '[web]' > .hg/hgrc
49 echo '[web]' > .hg/hgrc
50 echo 'push_ssl = false' >> .hg/hgrc
50 echo 'push_ssl = false' >> .hg/hgrc
51 echo 'deny_push = *' >> .hg/hgrc
51 echo 'deny_push = *' >> .hg/hgrc
52 req
52 req
53
53
54 echo % expect authorization error: some users denied, users must be authenticated
54 echo % expect authorization error: some users denied, users must be authenticated
55 echo 'deny_push = unperson' >> .hg/hgrc
55 echo 'deny_push = unperson' >> .hg/hgrc
56 req
56 req
@@ -1,38 +1,38
1 adding a
1 adding a
2 updating to branch default
2 updating to branch default
3 1 files updated, 0 files merged, 0 files removed, 0 files unresolved
3 1 files updated, 0 files merged, 0 files removed, 0 files unresolved
4 % expect ssl error
4 % expect ssl error
5 pushing to http://localhost/
5 pushing to http://localhost:$HGPORT/
6 searching for changes
6 searching for changes
7 ssl required
7 ssl required
8 % serve errors
8 % serve errors
9 % expect authorization error
9 % expect authorization error
10 abort: authorization failed
10 abort: authorization failed
11 pushing to http://localhost/
11 pushing to http://localhost:$HGPORT/
12 searching for changes
12 searching for changes
13 % serve errors
13 % serve errors
14 % expect authorization error: must have authorized user
14 % expect authorization error: must have authorized user
15 abort: authorization failed
15 abort: authorization failed
16 pushing to http://localhost/
16 pushing to http://localhost:$HGPORT/
17 searching for changes
17 searching for changes
18 % serve errors
18 % serve errors
19 % expect success
19 % expect success
20 pushing to http://localhost/
20 pushing to http://localhost:$HGPORT/
21 searching for changes
21 searching for changes
22 adding changesets
22 adding changesets
23 adding manifests
23 adding manifests
24 adding file changes
24 adding file changes
25 added 1 changesets with 1 changes to 1 files
25 added 1 changesets with 1 changes to 1 files
26 % serve errors
26 % serve errors
27 changegroup hook: HG_NODE=ba677d0156c1196c1a699fa53f390dcfc3ce3872 HG_SOURCE=serve HG_URL=remote:http
27 changegroup hook: HG_NODE=ba677d0156c1196c1a699fa53f390dcfc3ce3872 HG_SOURCE=serve HG_URL=remote:http
28 rolling back last transaction
28 rolling back last transaction
29 % expect authorization error: all users denied
29 % expect authorization error: all users denied
30 abort: authorization failed
30 abort: authorization failed
31 pushing to http://localhost/
31 pushing to http://localhost:$HGPORT/
32 searching for changes
32 searching for changes
33 % serve errors
33 % serve errors
34 % expect authorization error: some users denied, users must be authenticated
34 % expect authorization error: some users denied, users must be authenticated
35 abort: authorization failed
35 abort: authorization failed
36 pushing to http://localhost/
36 pushing to http://localhost:$HGPORT/
37 searching for changes
37 searching for changes
38 % serve errors
38 % serve errors
@@ -1,87 +1,87
1 #!/bin/sh
1 #!/bin/sh
2
2
3 cp "$TESTDIR"/printenv.py .
3 cp "$TESTDIR"/printenv.py .
4
4
5 hg clone http://localhost:$HGPORT/ copy
5 hg clone http://localhost:$HGPORT/ copy
6 echo $?
6 echo $?
7 test -d copy || echo copy: No such file or directory
7 test -d copy || echo copy: No such file or directory
8
8
9 # This server doesn't do range requests so it's basically only good for
9 # This server doesn't do range requests so it's basically only good for
10 # one pull
10 # one pull
11 cat > dumb.py <<EOF
11 cat > dumb.py <<EOF
12 import BaseHTTPServer, SimpleHTTPServer, os, signal
12 import BaseHTTPServer, SimpleHTTPServer, os, signal
13
13
14 def run(server_class=BaseHTTPServer.HTTPServer,
14 def run(server_class=BaseHTTPServer.HTTPServer,
15 handler_class=SimpleHTTPServer.SimpleHTTPRequestHandler):
15 handler_class=SimpleHTTPServer.SimpleHTTPRequestHandler):
16 server_address = ('localhost', int(os.environ['HGPORT']))
16 server_address = ('localhost', int(os.environ['HGPORT']))
17 httpd = server_class(server_address, handler_class)
17 httpd = server_class(server_address, handler_class)
18 httpd.serve_forever()
18 httpd.serve_forever()
19
19
20 signal.signal(signal.SIGTERM, lambda x: sys.exit(0))
20 signal.signal(signal.SIGTERM, lambda x: sys.exit(0))
21 run()
21 run()
22 EOF
22 EOF
23
23
24 python dumb.py 2>/dev/null &
24 python dumb.py 2>/dev/null &
25 echo $! >> $DAEMON_PIDS
25 echo $! >> $DAEMON_PIDS
26
26
27 mkdir remote
27 mkdir remote
28 cd remote
28 cd remote
29 hg init
29 hg init
30 echo foo > bar
30 echo foo > bar
31 hg add bar
31 hg add bar
32 hg commit -m"test" -d "1000000 0"
32 hg commit -m"test" -d "1000000 0"
33 hg tip
33 hg tip
34
34
35 cd ..
35 cd ..
36
36
37 hg clone static-http://localhost:$HGPORT/remote local | sed -e 's,:[0-9][0-9]*/,/,'
37 hg clone static-http://localhost:$HGPORT/remote local | sed -e "s,:$HGPORT/,:\$HGPORT/,"
38
38
39 cd local
39 cd local
40 hg verify
40 hg verify
41 cat bar
41 cat bar
42
42
43 cd ../remote
43 cd ../remote
44 echo baz > quux
44 echo baz > quux
45 hg commit -A -mtest2 -d '100000000 0'
45 hg commit -A -mtest2 -d '100000000 0'
46
46
47 cd ../local
47 cd ../local
48 echo '[hooks]' >> .hg/hgrc
48 echo '[hooks]' >> .hg/hgrc
49 echo 'changegroup = python ../printenv.py changegroup' >> .hg/hgrc
49 echo 'changegroup = python ../printenv.py changegroup' >> .hg/hgrc
50 hg pull | sed -e 's,:[0-9][0-9]*/,/,'
50 hg pull | sed -e "s,:$HGPORT/,:\$HGPORT/,"
51
51
52 echo '% trying to push'
52 echo '% trying to push'
53 hg update
53 hg update
54 echo more foo >> bar
54 echo more foo >> bar
55 hg commit -m"test" -d "100000000 0"
55 hg commit -m"test" -d "100000000 0"
56 hg push | sed -e 's,:[0-9][0-9]*/,/,'
56 hg push | sed -e "s,:$HGPORT/,:\$HGPORT/,"
57
57
58 echo '% test with "/" URI (issue 747)'
58 echo '% test with "/" URI (issue 747)'
59 cd ..
59 cd ..
60 hg init
60 hg init
61 echo a > a
61 echo a > a
62 hg add a
62 hg add a
63 hg ci -ma
63 hg ci -ma
64
64
65 hg clone static-http://localhost:$HGPORT/ local2 | sed -e 's,:[0-9][0-9]*/,/,'
65 hg clone static-http://localhost:$HGPORT/ local2 | sed -e "s,:$HGPORT/,:\$HGPORT/,"
66
66
67 cd local2
67 cd local2
68 hg verify
68 hg verify
69 cat a
69 cat a
70 hg paths | sed -e 's,:[0-9][0-9]*/,/,'
70 hg paths | sed -e "s,:$HGPORT/,:\$HGPORT/,"
71
71
72 echo '% test with empty repo (issue965)'
72 echo '% test with empty repo (issue965)'
73 cd ..
73 cd ..
74 hg init remotempty
74 hg init remotempty
75
75
76 hg clone static-http://localhost:$HGPORT/remotempty local3 | sed -e 's,:[0-9][0-9]*/,/,'
76 hg clone static-http://localhost:$HGPORT/remotempty local3 | sed -e "s,:$HGPORT/,:\$HGPORT/,"
77
77
78 cd local3
78 cd local3
79 hg verify
79 hg verify
80 hg paths | sed -e 's,:[0-9][0-9]*/,/,'
80 hg paths | sed -e "s,:$HGPORT/,:\$HGPORT/,"
81
81
82 echo '% test with non-repo'
82 echo '% test with non-repo'
83 cd ..
83 cd ..
84 mkdir notarepo
84 mkdir notarepo
85 hg clone static-http://localhost:$HGPORT/notarepo local3 2>&1 | sed -e 's,:[0-9][0-9]*/,/,'
85 hg clone static-http://localhost:$HGPORT/notarepo local3 2>&1 | sed -e "s,:$HGPORT/,:\$HGPORT/,"
86
86
87 kill $!
87 kill $!
@@ -1,62 +1,62
1 abort: error: Connection refused
1 abort: error: Connection refused
2 255
2 255
3 copy: No such file or directory
3 copy: No such file or directory
4 changeset: 0:53e17d176ae6
4 changeset: 0:53e17d176ae6
5 tag: tip
5 tag: tip
6 user: test
6 user: test
7 date: Mon Jan 12 13:46:40 1970 +0000
7 date: Mon Jan 12 13:46:40 1970 +0000
8 summary: test
8 summary: test
9
9
10 requesting all changes
10 requesting all changes
11 adding changesets
11 adding changesets
12 adding manifests
12 adding manifests
13 adding file changes
13 adding file changes
14 added 1 changesets with 1 changes to 1 files
14 added 1 changesets with 1 changes to 1 files
15 updating to branch default
15 updating to branch default
16 1 files updated, 0 files merged, 0 files removed, 0 files unresolved
16 1 files updated, 0 files merged, 0 files removed, 0 files unresolved
17 checking changesets
17 checking changesets
18 checking manifests
18 checking manifests
19 crosschecking files in changesets and manifests
19 crosschecking files in changesets and manifests
20 checking files
20 checking files
21 1 files, 1 changesets, 1 total revisions
21 1 files, 1 changesets, 1 total revisions
22 foo
22 foo
23 adding quux
23 adding quux
24 changegroup hook: HG_NODE=34401e0e9971e9720b613d9089ffa9a6eefb3d2d HG_SOURCE=pull HG_URL=http://localhost/remote
24 changegroup hook: HG_NODE=34401e0e9971e9720b613d9089ffa9a6eefb3d2d HG_SOURCE=pull HG_URL=http://localhost:$HGPORT/remote
25 pulling from static-http://localhost/remote
25 pulling from static-http://localhost:$HGPORT/remote
26 searching for changes
26 searching for changes
27 adding changesets
27 adding changesets
28 adding manifests
28 adding manifests
29 adding file changes
29 adding file changes
30 added 1 changesets with 1 changes to 1 files
30 added 1 changesets with 1 changes to 1 files
31 (run 'hg update' to get a working copy)
31 (run 'hg update' to get a working copy)
32 % trying to push
32 % trying to push
33 1 files updated, 0 files merged, 0 files removed, 0 files unresolved
33 1 files updated, 0 files merged, 0 files removed, 0 files unresolved
34 abort: cannot lock static-http repository
34 abort: cannot lock static-http repository
35 pushing to static-http://localhost/remote
35 pushing to static-http://localhost:$HGPORT/remote
36 % test with "/" URI (issue 747)
36 % test with "/" URI (issue 747)
37 requesting all changes
37 requesting all changes
38 adding changesets
38 adding changesets
39 adding manifests
39 adding manifests
40 adding file changes
40 adding file changes
41 added 1 changesets with 1 changes to 1 files
41 added 1 changesets with 1 changes to 1 files
42 updating to branch default
42 updating to branch default
43 1 files updated, 0 files merged, 0 files removed, 0 files unresolved
43 1 files updated, 0 files merged, 0 files removed, 0 files unresolved
44 checking changesets
44 checking changesets
45 checking manifests
45 checking manifests
46 crosschecking files in changesets and manifests
46 crosschecking files in changesets and manifests
47 checking files
47 checking files
48 1 files, 1 changesets, 1 total revisions
48 1 files, 1 changesets, 1 total revisions
49 a
49 a
50 default = static-http://localhost/
50 default = static-http://localhost:$HGPORT/
51 % test with empty repo (issue965)
51 % test with empty repo (issue965)
52 no changes found
52 no changes found
53 updating to branch default
53 updating to branch default
54 0 files updated, 0 files merged, 0 files removed, 0 files unresolved
54 0 files updated, 0 files merged, 0 files removed, 0 files unresolved
55 checking changesets
55 checking changesets
56 checking manifests
56 checking manifests
57 crosschecking files in changesets and manifests
57 crosschecking files in changesets and manifests
58 checking files
58 checking files
59 0 files, 0 changesets, 0 total revisions
59 0 files, 0 changesets, 0 total revisions
60 default = static-http://localhost/remotempty
60 default = static-http://localhost:$HGPORT/remotempty
61 % test with non-repo
61 % test with non-repo
62 abort: 'http://localhost/notarepo' does not appear to be an hg repository!
62 abort: 'http://localhost:$HGPORT/notarepo' does not appear to be an hg repository!
General Comments 0
You need to be logged in to leave comments. Login now