Show More
@@ -83,6 +83,7 b' def _hashlist(items):' | |||||
83 | b'eol', # uses setconfig('eol', ...) |
|
83 | b'eol', # uses setconfig('eol', ...) | |
84 | b'extdiff', # uisetup will register new commands |
|
84 | b'extdiff', # uisetup will register new commands | |
85 | b'extensions', |
|
85 | b'extensions', | |
|
86 | b'schemes', # extsetup will update global hg.schemes | |||
86 | ] |
|
87 | ] | |
87 |
|
88 | |||
88 | _configsectionitems = [ |
|
89 | _configsectionitems = [ |
@@ -245,6 +245,54 b' is different when using py3):' | |||||
245 | YYYY/MM/DD HH:MM:SS (PID)> worker process exited (pid=...) |
|
245 | YYYY/MM/DD HH:MM:SS (PID)> worker process exited (pid=...) | |
246 | YYYY/MM/DD HH:MM:SS (PID)> $TESTTMP/extreload/chgsock/server-... is not owned, exiting. |
|
246 | YYYY/MM/DD HH:MM:SS (PID)> $TESTTMP/extreload/chgsock/server-... is not owned, exiting. | |
247 |
|
247 | |||
|
248 | global data mutated by schems | |||
|
249 | ----------------------------- | |||
|
250 | ||||
|
251 | $ hg init schemes | |||
|
252 | $ cd schemes | |||
|
253 | ||||
|
254 | initial state | |||
|
255 | ||||
|
256 | $ cat > .hg/hgrc <<'EOF' | |||
|
257 | > [extensions] | |||
|
258 | > schemes = | |||
|
259 | > [schemes] | |||
|
260 | > foo = https://foo.example.org/ | |||
|
261 | > EOF | |||
|
262 | $ hg debugexpandscheme foo://expanded | |||
|
263 | https://foo.example.org/expanded | |||
|
264 | $ hg debugexpandscheme bar://unexpanded | |||
|
265 | bar://unexpanded | |||
|
266 | ||||
|
267 | add bar | |||
|
268 | ||||
|
269 | $ cat > .hg/hgrc <<'EOF' | |||
|
270 | > [extensions] | |||
|
271 | > schemes = | |||
|
272 | > [schemes] | |||
|
273 | > foo = https://foo.example.org/ | |||
|
274 | > bar = https://bar.example.org/ | |||
|
275 | > EOF | |||
|
276 | $ hg debugexpandscheme foo://expanded | |||
|
277 | https://foo.example.org/expanded | |||
|
278 | $ hg debugexpandscheme bar://expanded | |||
|
279 | https://bar.example.org/expanded | |||
|
280 | ||||
|
281 | remove foo | |||
|
282 | ||||
|
283 | $ cat > .hg/hgrc <<'EOF' | |||
|
284 | > [extensions] | |||
|
285 | > schemes = | |||
|
286 | > [schemes] | |||
|
287 | > bar = https://bar.example.org/ | |||
|
288 | > EOF | |||
|
289 | $ hg debugexpandscheme foo://unexpanded | |||
|
290 | foo://unexpanded | |||
|
291 | $ hg debugexpandscheme bar://expanded | |||
|
292 | https://bar.example.org/expanded | |||
|
293 | ||||
|
294 | $ cd .. | |||
|
295 | ||||
248 | repository cache |
|
296 | repository cache | |
249 | ---------------- |
|
297 | ---------------- | |
250 |
|
298 | |||
@@ -317,6 +365,8 b' shut down servers and restore environmen' | |||||
317 | check server log: |
|
365 | check server log: | |
318 |
|
366 | |||
319 | $ cat log/server.log | filterlog |
|
367 | $ cat log/server.log | filterlog | |
|
368 | YYYY/MM/DD HH:MM:SS (PID)> worker process exited (pid=...) | |||
|
369 | YYYY/MM/DD HH:MM:SS (PID)> worker process exited (pid=...) | |||
320 | YYYY/MM/DD HH:MM:SS (PID)> init cached |
|
370 | YYYY/MM/DD HH:MM:SS (PID)> init cached | |
321 | YYYY/MM/DD HH:MM:SS (PID)> id -R cached |
|
371 | YYYY/MM/DD HH:MM:SS (PID)> id -R cached | |
322 | YYYY/MM/DD HH:MM:SS (PID)> loaded repo into cache: $TESTTMP/cached (in ...s) |
|
372 | YYYY/MM/DD HH:MM:SS (PID)> loaded repo into cache: $TESTTMP/cached (in ...s) |
@@ -2,6 +2,9 b'' | |||||
2 |
|
2 | |||
3 | $ . "$TESTDIR/bzr-definitions" |
|
3 | $ . "$TESTDIR/bzr-definitions" | |
4 |
|
4 | |||
|
5 | Work around https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=944379 | |||
|
6 | $ mkdir -p "${HOME}/.config/breezy" | |||
|
7 | ||||
5 | empty directory |
|
8 | empty directory | |
6 |
|
9 | |||
7 | $ mkdir test-empty |
|
10 | $ mkdir test-empty |
@@ -226,7 +226,7 b' Multiple branches' | |||||
226 | Created tag trunk-tag. |
|
226 | Created tag trunk-tag. | |
227 | $ bzr switch -b branch |
|
227 | $ bzr switch -b branch | |
228 | Tree is up to date at revision 1. |
|
228 | Tree is up to date at revision 1. | |
229 |
Switched to branch |
|
229 | Switched to branch*repo/branch/ (glob) | |
230 | $ sleep 1 |
|
230 | $ sleep 1 | |
231 | $ echo b > b |
|
231 | $ echo b > b | |
232 | $ bzr add -q b |
|
232 | $ bzr add -q b | |
@@ -235,7 +235,7 b' Multiple branches' | |||||
235 | Created tag branch-tag. |
|
235 | Created tag branch-tag. | |
236 | $ bzr switch --force ../repo/trunk |
|
236 | $ bzr switch --force ../repo/trunk | |
237 | Updated to revision 1. |
|
237 | Updated to revision 1. | |
238 |
Switched to branch |
|
238 | Switched to branch*/repo/trunk/ (glob) | |
239 | $ sleep 1 |
|
239 | $ sleep 1 | |
240 | $ echo a >> a |
|
240 | $ echo a >> a | |
241 | $ bzr ci -qm changea |
|
241 | $ bzr ci -qm changea |
@@ -25,5 +25,5 b' Modify it:' | |||||
25 |
|
25 | |||
26 | Time a check-in, should never take more than 10 seconds user time: |
|
26 | Time a check-in, should never take more than 10 seconds user time: | |
27 |
|
27 | |||
28 | $ hg ci --time -m1 |
|
28 | $ hg ci --time -m1 --config worker.enabled=no | |
29 | time: real .* secs .user [0-9][.].* sys .* (re) |
|
29 | time: real .* secs .user [0-9][.].* sys .* (re) |
@@ -178,8 +178,11 b'' | |||||
178 | $ clearcache |
|
178 | $ clearcache | |
179 | $ find $CACHEDIR -type f | sort |
|
179 | $ find $CACHEDIR -type f | sort | |
180 | $ echo b > b |
|
180 | $ echo b > b | |
|
181 | .. The following output line about files fetches is globed because it is | |||
|
182 | .. flaky, the core the test is checked when checking the cache dir, so | |||
|
183 | .. hopefully this flakyness is not hiding any actual bug. | |||
181 | $ hg commit -qAm b |
|
184 | $ hg commit -qAm b | |
182 | * files fetched over 1 fetches - (* misses, 0.00% hit ratio) over *s (glob) |
|
185 | * files fetched over 1 fetches - (* misses, 0.00% hit ratio) over *s (glob) (?) | |
183 | $ hg bookmark temporary |
|
186 | $ hg bookmark temporary | |
184 | $ find $CACHEDIR -type f | sort |
|
187 | $ find $CACHEDIR -type f | sort | |
185 | $TESTTMP/hgcache/master/packs/8f1443d44e57fec96f72fb2412e01d2818767ef2.histidx |
|
188 | $TESTTMP/hgcache/master/packs/8f1443d44e57fec96f72fb2412e01d2818767ef2.histidx | |
@@ -222,10 +225,19 b'' | |||||
222 | (leaving bookmark temporary) |
|
225 | (leaving bookmark temporary) | |
223 | $ clearcache |
|
226 | $ clearcache | |
224 | $ find $CACHEDIR -type f | sort |
|
227 | $ find $CACHEDIR -type f | sort | |
|
228 | .. The following output line about files fetches is globed because it is | |||
|
229 | .. flaky, the core the test is checked when checking the cache dir, so | |||
|
230 | .. hopefully this flakyness is not hiding any actual bug. | |||
225 | $ hg rebase -s temporary -d foo |
|
231 | $ hg rebase -s temporary -d foo | |
226 | rebasing 3:d9cf06e3b5b6 "b" (temporary tip) |
|
232 | rebasing 3:d9cf06e3b5b6 "b" (temporary tip) | |
227 | saved backup bundle to $TESTTMP/shallow/.hg/strip-backup/d9cf06e3b5b6-e5c3dc63-rebase.hg |
|
233 | saved backup bundle to $TESTTMP/shallow/.hg/strip-backup/d9cf06e3b5b6-e5c3dc63-rebase.hg | |
228 |
|
|
234 | ? files fetched over ? fetches - (? misses, 0.00% hit ratio) over *s (glob) | |
|
235 | $ find $CACHEDIR -type f | sort | |||
|
236 | $TESTTMP/hgcache/master/packs/8f1443d44e57fec96f72fb2412e01d2818767ef2.histidx | |||
|
237 | $TESTTMP/hgcache/master/packs/8f1443d44e57fec96f72fb2412e01d2818767ef2.histpack | |||
|
238 | $TESTTMP/hgcache/master/packs/f4d50848e0b465e9bfd2875f213044c06cfd7407.dataidx | |||
|
239 | $TESTTMP/hgcache/master/packs/f4d50848e0b465e9bfd2875f213044c06cfd7407.datapack | |||
|
240 | $TESTTMP/hgcache/repos | |||
229 |
|
241 | |||
230 | # Ensure that file 'y' was prefetched - it was not part of the rebase operation and therefore |
|
242 | # Ensure that file 'y' was prefetched - it was not part of the rebase operation and therefore | |
231 | # could only be downloaded by the background prefetch |
|
243 | # could only be downloaded by the background prefetch |
General Comments 0
You need to be logged in to leave comments.
Login now