comparison tests/test-obsolete-tag-cache.t @ 24763:a698e088ad29

tags: explicitly log which tags cache file is being written We now have multiple tags cache files. Record exactly which file is being written. This should help aid debugging into performance issues with any single filter.
author Gregory Szorc <gregory.szorc@gmail.com>
date Thu, 16 Apr 2015 11:59:36 -0400
parents 1062663808ce
children e8f9dffca36f
comparison
equal deleted inserted replaced
24762:1062663808ce 24763:a698e088ad29
68 55482a6fb4b1881fa8f746fd52cf6f096bb21c89 test1 68 55482a6fb4b1881fa8f746fd52cf6f096bb21c89 test1
69 69
70 $ hg blackbox -l 4 70 $ hg blackbox -l 4
71 1970/01/01 00:00:00 bob> tags 71 1970/01/01 00:00:00 bob> tags
72 1970/01/01 00:00:00 bob> 2/2 cache hits/lookups in * seconds (glob) 72 1970/01/01 00:00:00 bob> 2/2 cache hits/lookups in * seconds (glob)
73 1970/01/01 00:00:00 bob> writing tags cache file with 2 tags 73 1970/01/01 00:00:00 bob> writing .hg/cache/tags2-visible with 2 tags
74 1970/01/01 00:00:00 bob> tags exited 0 after * seconds (glob) 74 1970/01/01 00:00:00 bob> tags exited 0 after * seconds (glob)
75 75
76 Hiding another changeset should cause the filtered hash to change 76 Hiding another changeset should cause the filtered hash to change
77 77
78 $ hg debugobsolete -d '0 0' d75775ffbc6bca1794d300f5571272879bd280da -u dummyuser 78 $ hg debugobsolete -d '0 0' d75775ffbc6bca1794d300f5571272879bd280da -u dummyuser
87 042eb6bfcc4909bad84a1cbf6eb1ddf0ab587d41 head2 87 042eb6bfcc4909bad84a1cbf6eb1ddf0ab587d41 head2
88 88
89 $ hg blackbox -l 4 89 $ hg blackbox -l 4
90 1970/01/01 00:00:00 bob> tags 90 1970/01/01 00:00:00 bob> tags
91 1970/01/01 00:00:00 bob> 1/1 cache hits/lookups in * seconds (glob) 91 1970/01/01 00:00:00 bob> 1/1 cache hits/lookups in * seconds (glob)
92 1970/01/01 00:00:00 bob> writing tags cache file with 1 tags 92 1970/01/01 00:00:00 bob> writing .hg/cache/tags2-visible with 1 tags
93 1970/01/01 00:00:00 bob> tags exited 0 after * seconds (glob) 93 1970/01/01 00:00:00 bob> tags exited 0 after * seconds (glob)
94 94
95 Resolving tags on an unfiltered repo writes a separate tags cache 95 Resolving tags on an unfiltered repo writes a separate tags cache
96 96
97 $ hg --hidden tags 97 $ hg --hidden tags
107 d75775ffbc6bca1794d300f5571272879bd280da test2 107 d75775ffbc6bca1794d300f5571272879bd280da test2
108 108
109 $ hg blackbox -l 4 109 $ hg blackbox -l 4
110 1970/01/01 00:00:00 bob> --hidden tags 110 1970/01/01 00:00:00 bob> --hidden tags
111 1970/01/01 00:00:00 bob> 2/2 cache hits/lookups in * seconds (glob) 111 1970/01/01 00:00:00 bob> 2/2 cache hits/lookups in * seconds (glob)
112 1970/01/01 00:00:00 bob> writing tags cache file with 3 tags 112 1970/01/01 00:00:00 bob> writing .hg/cache/tags2 with 3 tags
113 1970/01/01 00:00:00 bob> --hidden tags exited 0 after * seconds (glob) 113 1970/01/01 00:00:00 bob> --hidden tags exited 0 after * seconds (glob)