Show More
@@ -83,6 +83,7 b' def _hashlist(items):' | |||
|
83 | 83 | b'eol', # uses setconfig('eol', ...) |
|
84 | 84 | b'extdiff', # uisetup will register new commands |
|
85 | 85 | b'extensions', |
|
86 | b'schemes', # extsetup will update global hg.schemes | |
|
86 | 87 | ] |
|
87 | 88 | |
|
88 | 89 | _configsectionitems = [ |
@@ -245,6 +245,54 b' is different when using py3):' | |||
|
245 | 245 | YYYY/MM/DD HH:MM:SS (PID)> worker process exited (pid=...) |
|
246 | 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 | 296 | repository cache |
|
249 | 297 | ---------------- |
|
250 | 298 | |
@@ -317,6 +365,8 b' shut down servers and restore environmen' | |||
|
317 | 365 | check server log: |
|
318 | 366 | |
|
319 | 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 | 370 | YYYY/MM/DD HH:MM:SS (PID)> init cached |
|
321 | 371 | YYYY/MM/DD HH:MM:SS (PID)> id -R cached |
|
322 | 372 | YYYY/MM/DD HH:MM:SS (PID)> loaded repo into cache: $TESTTMP/cached (in ...s) |
@@ -2,6 +2,9 b'' | |||
|
2 | 2 | |
|
3 | 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 | 8 | empty directory |
|
6 | 9 | |
|
7 | 10 | $ mkdir test-empty |
@@ -226,7 +226,7 b' Multiple branches' | |||
|
226 | 226 | Created tag trunk-tag. |
|
227 | 227 | $ bzr switch -b branch |
|
228 | 228 | Tree is up to date at revision 1. |
|
229 |
Switched to branch |
|
|
229 | Switched to branch*repo/branch/ (glob) | |
|
230 | 230 | $ sleep 1 |
|
231 | 231 | $ echo b > b |
|
232 | 232 | $ bzr add -q b |
@@ -235,7 +235,7 b' Multiple branches' | |||
|
235 | 235 | Created tag branch-tag. |
|
236 | 236 | $ bzr switch --force ../repo/trunk |
|
237 | 237 | Updated to revision 1. |
|
238 |
Switched to branch |
|
|
238 | Switched to branch*/repo/trunk/ (glob) | |
|
239 | 239 | $ sleep 1 |
|
240 | 240 | $ echo a >> a |
|
241 | 241 | $ bzr ci -qm changea |
@@ -25,5 +25,5 b' Modify it:' | |||
|
25 | 25 | |
|
26 | 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 | 29 | time: real .* secs .user [0-9][.].* sys .* (re) |
@@ -178,8 +178,11 b'' | |||
|
178 | 178 | $ clearcache |
|
179 | 179 | $ find $CACHEDIR -type f | sort |
|
180 | 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 | 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 | 186 | $ hg bookmark temporary |
|
184 | 187 | $ find $CACHEDIR -type f | sort |
|
185 | 188 | $TESTTMP/hgcache/master/packs/8f1443d44e57fec96f72fb2412e01d2818767ef2.histidx |
@@ -222,10 +225,19 b'' | |||
|
222 | 225 | (leaving bookmark temporary) |
|
223 | 226 | $ clearcache |
|
224 | 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 | 231 | $ hg rebase -s temporary -d foo |
|
226 | 232 | rebasing 3:d9cf06e3b5b6 "b" (temporary tip) |
|
227 | 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 | 242 | # Ensure that file 'y' was prefetched - it was not part of the rebase operation and therefore |
|
231 | 243 | # could only be downloaded by the background prefetch |
General Comments 0
You need to be logged in to leave comments.
Login now