comparison tests/test-obsolete-tag-cache.t @ 28025:ab6468270b83

blackbox: flush output file descriptor Without this, when there are multiple ui views, each blackbox will have its own file handle, and the logging will be in a really bad order. Also, because of the way blackbox works, it never closes its file handles, which means the last output before exit is often lost.
author timeless <timeless@mozdev.org>
date Wed, 03 Feb 2016 15:18:29 +0000
parents e8f9dffca36f
children e8ad56d95fbb
comparison
equal deleted inserted replaced
28024:142891ab6e89 28025:ab6468270b83
65 $ cat .hg/cache/tags2-visible 65 $ cat .hg/cache/tags2-visible
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 4 70 $ hg blackbox -l 5
71 1970/01/01 00:00:00 bob (*)> tags (glob) 71 1970/01/01 00:00:00 bob (*)> tags (glob)
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 .hg/cache/tags2-visible with 2 tags (glob) 73 1970/01/01 00:00:00 bob (*)> writing .hg/cache/tags2-visible with 2 tags (glob)
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 1970/01/01 00:00:00 bob (*)> blackbox -l 5 (glob)
75 76
76 Hiding another changeset should cause the filtered hash to change 77 Hiding another changeset should cause the filtered hash to change
77 78
78 $ hg debugobsolete -d '0 0' d75775ffbc6bca1794d300f5571272879bd280da -u dummyuser 79 $ hg debugobsolete -d '0 0' d75775ffbc6bca1794d300f5571272879bd280da -u dummyuser
79 $ hg debugobsolete -d '0 0' 5f97d42da03fd56f3b228b03dfe48af5c0adf75b -u dummyuser 80 $ hg debugobsolete -d '0 0' 5f97d42da03fd56f3b228b03dfe48af5c0adf75b -u dummyuser
84 85
85 $ cat .hg/cache/tags2-visible 86 $ cat .hg/cache/tags2-visible
86 5 2942a772f72a444bef4bef13874d515f50fa27b6 2fce1eec33263d08a4d04293960fc73a555230e4 87 5 2942a772f72a444bef4bef13874d515f50fa27b6 2fce1eec33263d08a4d04293960fc73a555230e4
87 042eb6bfcc4909bad84a1cbf6eb1ddf0ab587d41 head2 88 042eb6bfcc4909bad84a1cbf6eb1ddf0ab587d41 head2
88 89
89 $ hg blackbox -l 4 90 $ hg blackbox -l 5
90 1970/01/01 00:00:00 bob (*)> tags (glob) 91 1970/01/01 00:00:00 bob (*)> tags (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 (*)> 1/1 cache hits/lookups in * seconds (glob)
92 1970/01/01 00:00:00 bob (*)> writing .hg/cache/tags2-visible with 1 tags (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 (*)> tags exited 0 after * seconds (glob) 94 1970/01/01 00:00:00 bob (*)> tags exited 0 after * seconds (glob)
95 1970/01/01 00:00:00 bob (*)> blackbox -l 5 (glob)
94 96
95 Resolving tags on an unfiltered repo writes a separate tags cache 97 Resolving tags on an unfiltered repo writes a separate tags cache
96 98
97 $ hg --hidden tags 99 $ hg --hidden tags
98 tip 5:2942a772f72a 100 tip 5:2942a772f72a
104 5 2942a772f72a444bef4bef13874d515f50fa27b6 106 5 2942a772f72a444bef4bef13874d515f50fa27b6
105 042eb6bfcc4909bad84a1cbf6eb1ddf0ab587d41 head2 107 042eb6bfcc4909bad84a1cbf6eb1ddf0ab587d41 head2
106 55482a6fb4b1881fa8f746fd52cf6f096bb21c89 test1 108 55482a6fb4b1881fa8f746fd52cf6f096bb21c89 test1
107 d75775ffbc6bca1794d300f5571272879bd280da test2 109 d75775ffbc6bca1794d300f5571272879bd280da test2
108 110
109 $ hg blackbox -l 4 111 $ hg blackbox -l 5
110 1970/01/01 00:00:00 bob (*)> --hidden tags (glob) 112 1970/01/01 00:00:00 bob (*)> --hidden tags (glob)
111 1970/01/01 00:00:00 bob (*)> 2/2 cache hits/lookups in * seconds (glob) 113 1970/01/01 00:00:00 bob (*)> 2/2 cache hits/lookups in * seconds (glob)
112 1970/01/01 00:00:00 bob (*)> writing .hg/cache/tags2 with 3 tags (glob) 114 1970/01/01 00:00:00 bob (*)> writing .hg/cache/tags2 with 3 tags (glob)
113 1970/01/01 00:00:00 bob (*)> --hidden tags exited 0 after * seconds (glob) 115 1970/01/01 00:00:00 bob (*)> --hidden tags exited 0 after * seconds (glob)
116 1970/01/01 00:00:00 bob (*)> blackbox -l 5 (glob)