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