annotate tests/test-walk.out @ 1803:06e7447c7302

speed up hg log --patch Changing dodiff to read the manifest/changelog for node1 before calling repo.update allows us to take advantage of the revlog revision cache. Before this patch and my previous "speed up hg log --debug" patch, when using hg log -p to display three revisions (A, B and C), dodiff and repo.changes would end up reading the manifests in this order: B A B A C B C B With both patches, this order becomes: A A B B B B C C (This considers only dodiff and repo.changes. I'm not sure how other parts of hg log enter the picture.) The speed up will depend on the revisions being displayed. (All "before" times already have my previous "speed up hg log --debug" patch applied.) hg repo (tip = 414e81ae971f). hg log -p before after real 0m50.981s 0m45.279s user 0m47.930s 0m42.560s sys 0m2.526s 0m2.523s output size: 6917897 bytes kernel repo (tip = 9d4e135960ed). hg log -p -l64 before after real 2m14.995s 1m45.025s user 2m9.509s 1m33.900s sys 0m3.663s 0m2.942s output size: 31497621 bytes same kernel repo. hg log -p -l64 -r c84c2069592f:0 before after real 1m48.045s 1m0.076s user 1m44.094s 0m58.492s sys 0m2.603s 0m1.103s output size: 197983 bytes c84c2069592f was the tip of a 10 day old kernel repo that I had lying around and was where I first tested this patch. For some weird coincidence it's also a place where the patch makes a huge difference.
author Alexis S. L. Carvalho <alexis@cecm.usp.br>
date Sun, 26 Feb 2006 02:26:17 +0100
parents 332f225b835c
children df8416346bb7
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
889
0a06d9d373c3 Add unit tests for walk code.
Bryan O'Sullivan <bos@serpentine.com>
parents:
diff changeset
1 adding beans/black
0a06d9d373c3 Add unit tests for walk code.
Bryan O'Sullivan <bos@serpentine.com>
parents:
diff changeset
2 adding beans/borlotti
0a06d9d373c3 Add unit tests for walk code.
Bryan O'Sullivan <bos@serpentine.com>
parents:
diff changeset
3 adding beans/kidney
0a06d9d373c3 Add unit tests for walk code.
Bryan O'Sullivan <bos@serpentine.com>
parents:
diff changeset
4 adding beans/navy
0a06d9d373c3 Add unit tests for walk code.
Bryan O'Sullivan <bos@serpentine.com>
parents:
diff changeset
5 adding beans/pinto
0a06d9d373c3 Add unit tests for walk code.
Bryan O'Sullivan <bos@serpentine.com>
parents:
diff changeset
6 adding beans/turtle
1184
9462df772bc8 Fix up failing tests.
bos@serpentine.internal.keyresearch.com
parents: 1082
diff changeset
7 adding fennel
9462df772bc8 Fix up failing tests.
bos@serpentine.internal.keyresearch.com
parents: 1082
diff changeset
8 adding fenugreek
9462df772bc8 Fix up failing tests.
bos@serpentine.internal.keyresearch.com
parents: 1082
diff changeset
9 adding fiddlehead
9462df772bc8 Fix up failing tests.
bos@serpentine.internal.keyresearch.com
parents: 1082
diff changeset
10 adding glob:glob
889
0a06d9d373c3 Add unit tests for walk code.
Bryan O'Sullivan <bos@serpentine.com>
parents:
diff changeset
11 adding mammals/Procyonidae/cacomistle
0a06d9d373c3 Add unit tests for walk code.
Bryan O'Sullivan <bos@serpentine.com>
parents:
diff changeset
12 adding mammals/Procyonidae/coatimundi
0a06d9d373c3 Add unit tests for walk code.
Bryan O'Sullivan <bos@serpentine.com>
parents:
diff changeset
13 adding mammals/Procyonidae/raccoon
1184
9462df772bc8 Fix up failing tests.
bos@serpentine.internal.keyresearch.com
parents: 1082
diff changeset
14 adding mammals/skunk
1309
332f225b835c Make debugwalk strip trailing spaces and remove these from test-walk.out
Thomas Arendsen Hein <thomas@intevation.de>
parents: 1184
diff changeset
15 f beans/black beans/black
332f225b835c Make debugwalk strip trailing spaces and remove these from test-walk.out
Thomas Arendsen Hein <thomas@intevation.de>
parents: 1184
diff changeset
16 f beans/borlotti beans/borlotti
332f225b835c Make debugwalk strip trailing spaces and remove these from test-walk.out
Thomas Arendsen Hein <thomas@intevation.de>
parents: 1184
diff changeset
17 f beans/kidney beans/kidney
332f225b835c Make debugwalk strip trailing spaces and remove these from test-walk.out
Thomas Arendsen Hein <thomas@intevation.de>
parents: 1184
diff changeset
18 f beans/navy beans/navy
332f225b835c Make debugwalk strip trailing spaces and remove these from test-walk.out
Thomas Arendsen Hein <thomas@intevation.de>
parents: 1184
diff changeset
19 f beans/pinto beans/pinto
332f225b835c Make debugwalk strip trailing spaces and remove these from test-walk.out
Thomas Arendsen Hein <thomas@intevation.de>
parents: 1184
diff changeset
20 f beans/turtle beans/turtle
332f225b835c Make debugwalk strip trailing spaces and remove these from test-walk.out
Thomas Arendsen Hein <thomas@intevation.de>
parents: 1184
diff changeset
21 f fennel fennel
332f225b835c Make debugwalk strip trailing spaces and remove these from test-walk.out
Thomas Arendsen Hein <thomas@intevation.de>
parents: 1184
diff changeset
22 f fenugreek fenugreek
332f225b835c Make debugwalk strip trailing spaces and remove these from test-walk.out
Thomas Arendsen Hein <thomas@intevation.de>
parents: 1184
diff changeset
23 f fiddlehead fiddlehead
332f225b835c Make debugwalk strip trailing spaces and remove these from test-walk.out
Thomas Arendsen Hein <thomas@intevation.de>
parents: 1184
diff changeset
24 f glob:glob glob:glob
332f225b835c Make debugwalk strip trailing spaces and remove these from test-walk.out
Thomas Arendsen Hein <thomas@intevation.de>
parents: 1184
diff changeset
25 f mammals/Procyonidae/cacomistle mammals/Procyonidae/cacomistle
332f225b835c Make debugwalk strip trailing spaces and remove these from test-walk.out
Thomas Arendsen Hein <thomas@intevation.de>
parents: 1184
diff changeset
26 f mammals/Procyonidae/coatimundi mammals/Procyonidae/coatimundi
332f225b835c Make debugwalk strip trailing spaces and remove these from test-walk.out
Thomas Arendsen Hein <thomas@intevation.de>
parents: 1184
diff changeset
27 f mammals/Procyonidae/raccoon mammals/Procyonidae/raccoon
332f225b835c Make debugwalk strip trailing spaces and remove these from test-walk.out
Thomas Arendsen Hein <thomas@intevation.de>
parents: 1184
diff changeset
28 f mammals/skunk mammals/skunk
332f225b835c Make debugwalk strip trailing spaces and remove these from test-walk.out
Thomas Arendsen Hein <thomas@intevation.de>
parents: 1184
diff changeset
29 f mammals/Procyonidae/cacomistle Procyonidae/cacomistle
332f225b835c Make debugwalk strip trailing spaces and remove these from test-walk.out
Thomas Arendsen Hein <thomas@intevation.de>
parents: 1184
diff changeset
30 f mammals/Procyonidae/coatimundi Procyonidae/coatimundi
332f225b835c Make debugwalk strip trailing spaces and remove these from test-walk.out
Thomas Arendsen Hein <thomas@intevation.de>
parents: 1184
diff changeset
31 f mammals/Procyonidae/raccoon Procyonidae/raccoon
332f225b835c Make debugwalk strip trailing spaces and remove these from test-walk.out
Thomas Arendsen Hein <thomas@intevation.de>
parents: 1184
diff changeset
32 f mammals/skunk skunk
332f225b835c Make debugwalk strip trailing spaces and remove these from test-walk.out
Thomas Arendsen Hein <thomas@intevation.de>
parents: 1184
diff changeset
33 f mammals/Procyonidae/cacomistle Procyonidae/cacomistle
332f225b835c Make debugwalk strip trailing spaces and remove these from test-walk.out
Thomas Arendsen Hein <thomas@intevation.de>
parents: 1184
diff changeset
34 f mammals/Procyonidae/coatimundi Procyonidae/coatimundi
332f225b835c Make debugwalk strip trailing spaces and remove these from test-walk.out
Thomas Arendsen Hein <thomas@intevation.de>
parents: 1184
diff changeset
35 f mammals/Procyonidae/raccoon Procyonidae/raccoon
332f225b835c Make debugwalk strip trailing spaces and remove these from test-walk.out
Thomas Arendsen Hein <thomas@intevation.de>
parents: 1184
diff changeset
36 f mammals/Procyonidae/cacomistle cacomistle
332f225b835c Make debugwalk strip trailing spaces and remove these from test-walk.out
Thomas Arendsen Hein <thomas@intevation.de>
parents: 1184
diff changeset
37 f mammals/Procyonidae/coatimundi coatimundi
332f225b835c Make debugwalk strip trailing spaces and remove these from test-walk.out
Thomas Arendsen Hein <thomas@intevation.de>
parents: 1184
diff changeset
38 f mammals/Procyonidae/raccoon raccoon
332f225b835c Make debugwalk strip trailing spaces and remove these from test-walk.out
Thomas Arendsen Hein <thomas@intevation.de>
parents: 1184
diff changeset
39 f mammals/Procyonidae/cacomistle cacomistle
332f225b835c Make debugwalk strip trailing spaces and remove these from test-walk.out
Thomas Arendsen Hein <thomas@intevation.de>
parents: 1184
diff changeset
40 f mammals/Procyonidae/coatimundi coatimundi
332f225b835c Make debugwalk strip trailing spaces and remove these from test-walk.out
Thomas Arendsen Hein <thomas@intevation.de>
parents: 1184
diff changeset
41 f mammals/Procyonidae/raccoon raccoon
332f225b835c Make debugwalk strip trailing spaces and remove these from test-walk.out
Thomas Arendsen Hein <thomas@intevation.de>
parents: 1184
diff changeset
42 f mammals/skunk ../skunk
332f225b835c Make debugwalk strip trailing spaces and remove these from test-walk.out
Thomas Arendsen Hein <thomas@intevation.de>
parents: 1184
diff changeset
43 f beans/black ../beans/black
332f225b835c Make debugwalk strip trailing spaces and remove these from test-walk.out
Thomas Arendsen Hein <thomas@intevation.de>
parents: 1184
diff changeset
44 f beans/borlotti ../beans/borlotti
332f225b835c Make debugwalk strip trailing spaces and remove these from test-walk.out
Thomas Arendsen Hein <thomas@intevation.de>
parents: 1184
diff changeset
45 f beans/kidney ../beans/kidney
332f225b835c Make debugwalk strip trailing spaces and remove these from test-walk.out
Thomas Arendsen Hein <thomas@intevation.de>
parents: 1184
diff changeset
46 f beans/navy ../beans/navy
332f225b835c Make debugwalk strip trailing spaces and remove these from test-walk.out
Thomas Arendsen Hein <thomas@intevation.de>
parents: 1184
diff changeset
47 f beans/pinto ../beans/pinto
332f225b835c Make debugwalk strip trailing spaces and remove these from test-walk.out
Thomas Arendsen Hein <thomas@intevation.de>
parents: 1184
diff changeset
48 f beans/turtle ../beans/turtle
332f225b835c Make debugwalk strip trailing spaces and remove these from test-walk.out
Thomas Arendsen Hein <thomas@intevation.de>
parents: 1184
diff changeset
49 f mammals/Procyonidae/cacomistle Procyonidae/cacomistle
332f225b835c Make debugwalk strip trailing spaces and remove these from test-walk.out
Thomas Arendsen Hein <thomas@intevation.de>
parents: 1184
diff changeset
50 f mammals/Procyonidae/coatimundi Procyonidae/coatimundi
332f225b835c Make debugwalk strip trailing spaces and remove these from test-walk.out
Thomas Arendsen Hein <thomas@intevation.de>
parents: 1184
diff changeset
51 f mammals/Procyonidae/raccoon Procyonidae/raccoon
332f225b835c Make debugwalk strip trailing spaces and remove these from test-walk.out
Thomas Arendsen Hein <thomas@intevation.de>
parents: 1184
diff changeset
52 f mammals/skunk skunk
332f225b835c Make debugwalk strip trailing spaces and remove these from test-walk.out
Thomas Arendsen Hein <thomas@intevation.de>
parents: 1184
diff changeset
53 f beans/black beans/black
332f225b835c Make debugwalk strip trailing spaces and remove these from test-walk.out
Thomas Arendsen Hein <thomas@intevation.de>
parents: 1184
diff changeset
54 f beans/borlotti beans/borlotti
332f225b835c Make debugwalk strip trailing spaces and remove these from test-walk.out
Thomas Arendsen Hein <thomas@intevation.de>
parents: 1184
diff changeset
55 f beans/kidney beans/kidney
332f225b835c Make debugwalk strip trailing spaces and remove these from test-walk.out
Thomas Arendsen Hein <thomas@intevation.de>
parents: 1184
diff changeset
56 f beans/navy beans/navy
332f225b835c Make debugwalk strip trailing spaces and remove these from test-walk.out
Thomas Arendsen Hein <thomas@intevation.de>
parents: 1184
diff changeset
57 f beans/pinto beans/pinto
332f225b835c Make debugwalk strip trailing spaces and remove these from test-walk.out
Thomas Arendsen Hein <thomas@intevation.de>
parents: 1184
diff changeset
58 f beans/turtle beans/turtle
332f225b835c Make debugwalk strip trailing spaces and remove these from test-walk.out
Thomas Arendsen Hein <thomas@intevation.de>
parents: 1184
diff changeset
59 f beans/black beans/black
332f225b835c Make debugwalk strip trailing spaces and remove these from test-walk.out
Thomas Arendsen Hein <thomas@intevation.de>
parents: 1184
diff changeset
60 f beans/borlotti beans/borlotti
332f225b835c Make debugwalk strip trailing spaces and remove these from test-walk.out
Thomas Arendsen Hein <thomas@intevation.de>
parents: 1184
diff changeset
61 f mammals/skunk mammals/skunk
332f225b835c Make debugwalk strip trailing spaces and remove these from test-walk.out
Thomas Arendsen Hein <thomas@intevation.de>
parents: 1184
diff changeset
62 f mammals/Procyonidae/cacomistle mammals/Procyonidae/cacomistle
332f225b835c Make debugwalk strip trailing spaces and remove these from test-walk.out
Thomas Arendsen Hein <thomas@intevation.de>
parents: 1184
diff changeset
63 f mammals/Procyonidae/coatimundi mammals/Procyonidae/coatimundi
332f225b835c Make debugwalk strip trailing spaces and remove these from test-walk.out
Thomas Arendsen Hein <thomas@intevation.de>
parents: 1184
diff changeset
64 f mammals/Procyonidae/raccoon mammals/Procyonidae/raccoon
332f225b835c Make debugwalk strip trailing spaces and remove these from test-walk.out
Thomas Arendsen Hein <thomas@intevation.de>
parents: 1184
diff changeset
65 f mammals/skunk mammals/skunk
1082
ce96e316278a Update util.py docstrings, fix walk test
mpm@selenic.com
parents: 981
diff changeset
66 abort: .. not under root
ce96e316278a Update util.py docstrings, fix walk test
mpm@selenic.com
parents: 981
diff changeset
67 abort: beans/../.. not under root
1309
332f225b835c Make debugwalk strip trailing spaces and remove these from test-walk.out
Thomas Arendsen Hein <thomas@intevation.de>
parents: 1184
diff changeset
68 f fennel fennel
332f225b835c Make debugwalk strip trailing spaces and remove these from test-walk.out
Thomas Arendsen Hein <thomas@intevation.de>
parents: 1184
diff changeset
69 f fenugreek fenugreek
332f225b835c Make debugwalk strip trailing spaces and remove these from test-walk.out
Thomas Arendsen Hein <thomas@intevation.de>
parents: 1184
diff changeset
70 f fiddlehead fiddlehead
332f225b835c Make debugwalk strip trailing spaces and remove these from test-walk.out
Thomas Arendsen Hein <thomas@intevation.de>
parents: 1184
diff changeset
71 f glob:glob glob:glob
332f225b835c Make debugwalk strip trailing spaces and remove these from test-walk.out
Thomas Arendsen Hein <thomas@intevation.de>
parents: 1184
diff changeset
72 f beans/black beans/black
332f225b835c Make debugwalk strip trailing spaces and remove these from test-walk.out
Thomas Arendsen Hein <thomas@intevation.de>
parents: 1184
diff changeset
73 f fenugreek fenugreek
332f225b835c Make debugwalk strip trailing spaces and remove these from test-walk.out
Thomas Arendsen Hein <thomas@intevation.de>
parents: 1184
diff changeset
74 f glob:glob glob:glob
332f225b835c Make debugwalk strip trailing spaces and remove these from test-walk.out
Thomas Arendsen Hein <thomas@intevation.de>
parents: 1184
diff changeset
75 f mammals/skunk mammals/skunk
332f225b835c Make debugwalk strip trailing spaces and remove these from test-walk.out
Thomas Arendsen Hein <thomas@intevation.de>
parents: 1184
diff changeset
76 f beans/black beans/black
332f225b835c Make debugwalk strip trailing spaces and remove these from test-walk.out
Thomas Arendsen Hein <thomas@intevation.de>
parents: 1184
diff changeset
77 f beans/black beans/black
332f225b835c Make debugwalk strip trailing spaces and remove these from test-walk.out
Thomas Arendsen Hein <thomas@intevation.de>
parents: 1184
diff changeset
78 f beans/borlotti beans/borlotti
332f225b835c Make debugwalk strip trailing spaces and remove these from test-walk.out
Thomas Arendsen Hein <thomas@intevation.de>
parents: 1184
diff changeset
79 f beans/kidney beans/kidney
332f225b835c Make debugwalk strip trailing spaces and remove these from test-walk.out
Thomas Arendsen Hein <thomas@intevation.de>
parents: 1184
diff changeset
80 f beans/navy beans/navy
332f225b835c Make debugwalk strip trailing spaces and remove these from test-walk.out
Thomas Arendsen Hein <thomas@intevation.de>
parents: 1184
diff changeset
81 f beans/pinto beans/pinto
332f225b835c Make debugwalk strip trailing spaces and remove these from test-walk.out
Thomas Arendsen Hein <thomas@intevation.de>
parents: 1184
diff changeset
82 f beans/turtle beans/turtle
889
0a06d9d373c3 Add unit tests for walk code.
Bryan O'Sullivan <bos@serpentine.com>
parents:
diff changeset
83 NOEXIST: No such file or directory
0a06d9d373c3 Add unit tests for walk code.
Bryan O'Sullivan <bos@serpentine.com>
parents:
diff changeset
84 fifo: unsupported file type (type is fifo)
942
7eb8cbcca7c4 Modify commands.walk to yield a 4-tuple.
Bryan O'Sullivan <bos@serpentine.com>
parents: 925
diff changeset
85 m fenugreek fenugreek exact
7eb8cbcca7c4 Modify commands.walk to yield a 4-tuple.
Bryan O'Sullivan <bos@serpentine.com>
parents: 925
diff changeset
86 m fenugreek fenugreek exact
7eb8cbcca7c4 Modify commands.walk to yield a 4-tuple.
Bryan O'Sullivan <bos@serpentine.com>
parents: 925
diff changeset
87 f new new exact