comparison tests/test-obsolete-tag-cache.t @ 28242:e8ad56d95fbb

tests: mock getpid to reduce glob usage Updating tests based on ac49ecb2a897.
author timeless <timeless@mozdev.org>
date Wed, 24 Feb 2016 20:04:32 +0000
parents ab6468270b83
children caa2a0c6fbb7
comparison
equal deleted inserted replaced
28241:a4286175ecba 28242:e8ad56d95fbb
66 5 2942a772f72a444bef4bef13874d515f50fa27b6 f34fbc9a9769ba9eff5aff3d008a6b49f85c08b1 66 5 2942a772f72a444bef4bef13874d515f50fa27b6 f34fbc9a9769ba9eff5aff3d008a6b49f85c08b1
67 042eb6bfcc4909bad84a1cbf6eb1ddf0ab587d41 head2 67 042eb6bfcc4909bad84a1cbf6eb1ddf0ab587d41 head2
68 55482a6fb4b1881fa8f746fd52cf6f096bb21c89 test1 68 55482a6fb4b1881fa8f746fd52cf6f096bb21c89 test1
69 69
70 $ hg blackbox -l 5 70 $ hg blackbox -l 5
71 1970/01/01 00:00:00 bob (*)> tags (glob) 71 1970/01/01 00:00:00 bob (5000)> 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 (5000)> 2/2 cache hits/lookups in * seconds (glob)
73 1970/01/01 00:00:00 bob (*)> writing .hg/cache/tags2-visible with 2 tags (glob) 73 1970/01/01 00:00:00 bob (5000)> 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 (5000)> tags exited 0 after * seconds (glob)
75 1970/01/01 00:00:00 bob (*)> blackbox -l 5 (glob) 75 1970/01/01 00:00:00 bob (5000)> blackbox -l 5
76 76
77 Hiding another changeset should cause the filtered hash to change 77 Hiding another changeset should cause the filtered hash to change
78 78
79 $ hg debugobsolete -d '0 0' d75775ffbc6bca1794d300f5571272879bd280da -u dummyuser 79 $ hg debugobsolete -d '0 0' d75775ffbc6bca1794d300f5571272879bd280da -u dummyuser
80 $ hg debugobsolete -d '0 0' 5f97d42da03fd56f3b228b03dfe48af5c0adf75b -u dummyuser 80 $ hg debugobsolete -d '0 0' 5f97d42da03fd56f3b228b03dfe48af5c0adf75b -u dummyuser
86 $ cat .hg/cache/tags2-visible 86 $ cat .hg/cache/tags2-visible
87 5 2942a772f72a444bef4bef13874d515f50fa27b6 2fce1eec33263d08a4d04293960fc73a555230e4 87 5 2942a772f72a444bef4bef13874d515f50fa27b6 2fce1eec33263d08a4d04293960fc73a555230e4
88 042eb6bfcc4909bad84a1cbf6eb1ddf0ab587d41 head2 88 042eb6bfcc4909bad84a1cbf6eb1ddf0ab587d41 head2
89 89
90 $ hg blackbox -l 5 90 $ hg blackbox -l 5
91 1970/01/01 00:00:00 bob (*)> tags (glob) 91 1970/01/01 00:00:00 bob (5000)> tags
92 1970/01/01 00:00:00 bob (*)> 1/1 cache hits/lookups in * seconds (glob) 92 1970/01/01 00:00:00 bob (5000)> 1/1 cache hits/lookups in * seconds (glob)
93 1970/01/01 00:00:00 bob (*)> writing .hg/cache/tags2-visible with 1 tags (glob) 93 1970/01/01 00:00:00 bob (5000)> writing .hg/cache/tags2-visible with 1 tags
94 1970/01/01 00:00:00 bob (*)> tags exited 0 after * seconds (glob) 94 1970/01/01 00:00:00 bob (5000)> tags exited 0 after * seconds (glob)
95 1970/01/01 00:00:00 bob (*)> blackbox -l 5 (glob) 95 1970/01/01 00:00:00 bob (5000)> blackbox -l 5
96 96
97 Resolving tags on an unfiltered repo writes a separate tags cache 97 Resolving tags on an unfiltered repo writes a separate tags cache
98 98
99 $ hg --hidden tags 99 $ hg --hidden tags
100 tip 5:2942a772f72a 100 tip 5:2942a772f72a
107 042eb6bfcc4909bad84a1cbf6eb1ddf0ab587d41 head2 107 042eb6bfcc4909bad84a1cbf6eb1ddf0ab587d41 head2
108 55482a6fb4b1881fa8f746fd52cf6f096bb21c89 test1 108 55482a6fb4b1881fa8f746fd52cf6f096bb21c89 test1
109 d75775ffbc6bca1794d300f5571272879bd280da test2 109 d75775ffbc6bca1794d300f5571272879bd280da test2
110 110
111 $ hg blackbox -l 5 111 $ hg blackbox -l 5
112 1970/01/01 00:00:00 bob (*)> --hidden tags (glob) 112 1970/01/01 00:00:00 bob (5000)> --hidden tags
113 1970/01/01 00:00:00 bob (*)> 2/2 cache hits/lookups in * seconds (glob) 113 1970/01/01 00:00:00 bob (5000)> 2/2 cache hits/lookups in * seconds (glob)
114 1970/01/01 00:00:00 bob (*)> writing .hg/cache/tags2 with 3 tags (glob) 114 1970/01/01 00:00:00 bob (5000)> writing .hg/cache/tags2 with 3 tags
115 1970/01/01 00:00:00 bob (*)> --hidden tags exited 0 after * seconds (glob) 115 1970/01/01 00:00:00 bob (5000)> --hidden tags exited 0 after * seconds (glob)
116 1970/01/01 00:00:00 bob (*)> blackbox -l 5 (glob) 116 1970/01/01 00:00:00 bob (5000)> blackbox -l 5