Show More
@@ -35,6 +35,8 b' import errno' | |||||
35 | import re |
|
35 | import re | |
36 |
|
36 | |||
37 | from mercurial.i18n import _ |
|
37 | from mercurial.i18n import _ | |
|
38 | from mercurial.node import hex | |||
|
39 | ||||
38 | from mercurial import ( |
|
40 | from mercurial import ( | |
39 | cmdutil, |
|
41 | cmdutil, | |
40 | util, |
|
42 | util, | |
@@ -64,6 +66,12 b' def _closelog(vfs):' | |||||
64 | del filehandles[path] |
|
66 | del filehandles[path] | |
65 | fp.close() |
|
67 | fp.close() | |
66 |
|
68 | |||
|
69 | def hexfn(node): | |||
|
70 | if node is None: | |||
|
71 | return None | |||
|
72 | else: | |||
|
73 | return hex(node) | |||
|
74 | ||||
67 | def wrapui(ui): |
|
75 | def wrapui(ui): | |
68 | class blackboxui(ui.__class__): |
|
76 | class blackboxui(ui.__class__): | |
69 | @util.propertycache |
|
77 | @util.propertycache | |
@@ -131,17 +139,27 b' def wrapui(ui):' | |||||
131 | user = util.getuser() |
|
139 | user = util.getuser() | |
132 | pid = str(util.getpid()) |
|
140 | pid = str(util.getpid()) | |
133 | formattedmsg = msg[0] % msg[1:] |
|
141 | formattedmsg = msg[0] % msg[1:] | |
|
142 | rev = '(unknown)' | |||
|
143 | if util.safehasattr(self, '_bbrepo'): | |||
|
144 | ctx = self._bbrepo[None] | |||
|
145 | if ctx.rev() is not None: | |||
|
146 | rev = hexfn(ctx.node()) | |||
|
147 | else: | |||
|
148 | parents = ctx.parents() | |||
|
149 | rev = ('+'.join([hexfn(p.node()) for p in parents])) | |||
134 | try: |
|
150 | try: | |
135 | fp.write('%s %s (%s)> %s' % |
|
151 | fp.write('%s %s @%s (%s)> %s' % | |
136 |
|
|
152 | (date, user, rev, pid, formattedmsg)) | |
137 | fp.flush() |
|
153 | fp.flush() | |
138 | except IOError as err: |
|
154 | except IOError as err: | |
139 | self.debug('warning: cannot write to blackbox.log: %s\n' % |
|
155 | self.debug('warning: cannot write to blackbox.log: %s\n' % | |
140 | err.strerror) |
|
156 | err.strerror) | |
141 | lastfp = fp |
|
157 | if not lastfp or util.safehasattr(self, '_bbrepo'): | |
|
158 | lastfp = fp | |||
142 |
|
159 | |||
143 | def setrepo(self, repo): |
|
160 | def setrepo(self, repo): | |
144 | self._bbvfs = repo.vfs |
|
161 | self._bbvfs = repo.vfs | |
|
162 | self._bbrepo = repo | |||
145 |
|
163 | |||
146 | ui.__class__ = blackboxui |
|
164 | ui.__class__ = blackboxui | |
147 |
|
165 |
@@ -12,10 +12,13 b' command, exit codes, and duration' | |||||
12 |
|
12 | |||
13 | $ echo a > a |
|
13 | $ echo a > a | |
14 | $ hg add a |
|
14 | $ hg add a | |
|
15 | $ hg id > /dev/null | |||
15 | $ hg blackbox |
|
16 | $ hg blackbox | |
16 | 1970/01/01 00:00:00 bob (5000)> add a |
|
17 | 1970/01/01 00:00:00 bob @0000000000000000000000000000000000000000 (5000)> add a | |
17 | 1970/01/01 00:00:00 bob (5000)> add a exited 0 after * seconds (glob) |
|
18 | 1970/01/01 00:00:00 bob @(unknown) (5000)> add a exited 0 after * seconds (glob) | |
18 | 1970/01/01 00:00:00 bob (5000)> blackbox |
|
19 | 1970/01/01 00:00:00 bob @0000000000000000000000000000000000000000 (5000)> id | |
|
20 | 1970/01/01 00:00:00 bob @(unknown) (5000)> id exited 0 after * seconds (glob) | |||
|
21 | 1970/01/01 00:00:00 bob @0000000000000000000000000000000000000000 (5000)> blackbox | |||
19 |
|
22 | |||
20 | incoming change tracking |
|
23 | incoming change tracking | |
21 |
|
24 | |||
@@ -45,12 +48,12 b' clone, commit, pull' | |||||
45 | added 1 changesets with 1 changes to 1 files |
|
48 | added 1 changesets with 1 changes to 1 files | |
46 | (run 'hg update' to get a working copy) |
|
49 | (run 'hg update' to get a working copy) | |
47 | $ hg blackbox -l 6 |
|
50 | $ hg blackbox -l 6 | |
48 | 1970/01/01 00:00:00 bob (5000)> pull |
|
51 | 1970/01/01 00:00:00 bob @6563da9dcf87b1949716e38ff3e3dfaa3198eb06 (5000)> pull | |
49 | 1970/01/01 00:00:00 bob (5000)> updated served branch cache in * seconds (glob) |
|
52 | 1970/01/01 00:00:00 bob @6563da9dcf87b1949716e38ff3e3dfaa3198eb06 (5000)> updated served branch cache in * seconds (glob) | |
50 | 1970/01/01 00:00:00 bob (5000)> wrote served branch cache with 1 labels and 2 nodes |
|
53 | 1970/01/01 00:00:00 bob @6563da9dcf87b1949716e38ff3e3dfaa3198eb06 (5000)> wrote served branch cache with 1 labels and 2 nodes | |
51 | 1970/01/01 00:00:00 bob (5000)> 1 incoming changes - new heads: d02f48003e62 |
|
54 | 1970/01/01 00:00:00 bob @6563da9dcf87b1949716e38ff3e3dfaa3198eb06 (5000)> 1 incoming changes - new heads: d02f48003e62 | |
52 | 1970/01/01 00:00:00 bob (5000)> pull exited 0 after * seconds (glob) |
|
55 | 1970/01/01 00:00:00 bob @(unknown) (5000)> pull exited 0 after * seconds (glob) | |
53 | 1970/01/01 00:00:00 bob (5000)> blackbox -l 6 |
|
56 | 1970/01/01 00:00:00 bob @6563da9dcf87b1949716e38ff3e3dfaa3198eb06 (5000)> blackbox -l 6 | |
54 |
|
57 | |||
55 | we must not cause a failure if we cannot write to the log |
|
58 | we must not cause a failure if we cannot write to the log | |
56 |
|
59 | |||
@@ -107,12 +110,12 b' backup bundles get logged' | |||||
107 | 0 files updated, 0 files merged, 1 files removed, 0 files unresolved |
|
110 | 0 files updated, 0 files merged, 1 files removed, 0 files unresolved | |
108 | saved backup bundle to $TESTTMP/blackboxtest2/.hg/strip-backup/*-backup.hg (glob) |
|
111 | saved backup bundle to $TESTTMP/blackboxtest2/.hg/strip-backup/*-backup.hg (glob) | |
109 | $ hg blackbox -l 6 |
|
112 | $ hg blackbox -l 6 | |
110 | 1970/01/01 00:00:00 bob (5000)> strip tip |
|
113 | 1970/01/01 00:00:00 bob @73f6ee326b27d820b0472f1a825e3a50f3dc489b (5000)> strip tip | |
111 |
1970/01/01 00:00:00 bob (5000)> saved backup bundle to $TESTTMP/blackboxtest2/.hg/strip-backup/73f6ee326b27-7612e004-backup.hg |
|
114 | 1970/01/01 00:00:00 bob @6563da9dcf87b1949716e38ff3e3dfaa3198eb06 (5000)> saved backup bundle to $TESTTMP/blackboxtest2/.hg/strip-backup/73f6ee326b27-7612e004-backup.hg | |
112 | 1970/01/01 00:00:00 bob (5000)> updated base branch cache in * seconds (glob) |
|
115 | 1970/01/01 00:00:00 bob @6563da9dcf87b1949716e38ff3e3dfaa3198eb06 (5000)> updated base branch cache in * seconds (glob) | |
113 | 1970/01/01 00:00:00 bob (5000)> wrote base branch cache with 1 labels and 2 nodes |
|
116 | 1970/01/01 00:00:00 bob @6563da9dcf87b1949716e38ff3e3dfaa3198eb06 (5000)> wrote base branch cache with 1 labels and 2 nodes | |
114 | 1970/01/01 00:00:00 bob (5000)> strip tip exited 0 after * seconds (glob) |
|
117 | 1970/01/01 00:00:00 bob @(unknown) (5000)> strip tip exited 0 after * seconds (glob) | |
115 | 1970/01/01 00:00:00 bob (5000)> blackbox -l 6 |
|
118 | 1970/01/01 00:00:00 bob @6563da9dcf87b1949716e38ff3e3dfaa3198eb06 (5000)> blackbox -l 6 | |
116 |
|
119 | |||
117 | extension and python hooks - use the eol extension for a pythonhook |
|
120 | extension and python hooks - use the eol extension for a pythonhook | |
118 |
|
121 | |||
@@ -125,12 +128,12 b' extension and python hooks - use the eol' | |||||
125 | 1 files updated, 0 files merged, 0 files removed, 0 files unresolved |
|
128 | 1 files updated, 0 files merged, 0 files removed, 0 files unresolved | |
126 | 1 other heads for branch "default" |
|
129 | 1 other heads for branch "default" | |
127 | $ hg blackbox -l 6 |
|
130 | $ hg blackbox -l 6 | |
128 | 1970/01/01 00:00:00 bob (5000)> update |
|
131 | 1970/01/01 00:00:00 bob @6563da9dcf87b1949716e38ff3e3dfaa3198eb06 (5000)> update | |
129 | 1970/01/01 00:00:00 bob (5000)> writing .hg/cache/tags2-visible with 0 tags |
|
132 | 1970/01/01 00:00:00 bob @6563da9dcf87b1949716e38ff3e3dfaa3198eb06 (5000)> writing .hg/cache/tags2-visible with 0 tags | |
130 | 1970/01/01 00:00:00 bob (5000)> pythonhook-preupdate: hgext.eol.preupdate finished in * seconds (glob) |
|
133 | 1970/01/01 00:00:00 bob @6563da9dcf87b1949716e38ff3e3dfaa3198eb06 (5000)> pythonhook-preupdate: hgext.eol.preupdate finished in * seconds (glob) | |
131 | 1970/01/01 00:00:00 bob (5000)> exthook-update: echo hooked finished in * seconds (glob) |
|
134 | 1970/01/01 00:00:00 bob @d02f48003e62c24e2659d97d30f2a83abe5d5d51 (5000)> exthook-update: echo hooked finished in * seconds (glob) | |
132 | 1970/01/01 00:00:00 bob (5000)> update exited 0 after * seconds (glob) |
|
135 | 1970/01/01 00:00:00 bob @(unknown) (5000)> update exited 0 after * seconds (glob) | |
133 | 1970/01/01 00:00:00 bob (5000)> blackbox -l 6 |
|
136 | 1970/01/01 00:00:00 bob @d02f48003e62c24e2659d97d30f2a83abe5d5d51 (5000)> blackbox -l 6 | |
134 |
|
137 | |||
135 | log rotation |
|
138 | log rotation | |
136 |
|
139 | |||
@@ -151,7 +154,7 b' log rotation' | |||||
151 | $ hg init blackboxtest3 |
|
154 | $ hg init blackboxtest3 | |
152 | $ cd blackboxtest3 |
|
155 | $ cd blackboxtest3 | |
153 | $ hg blackbox |
|
156 | $ hg blackbox | |
154 | 1970/01/01 00:00:00 bob (5000)> blackbox |
|
157 | 1970/01/01 00:00:00 bob @0000000000000000000000000000000000000000 (5000)> blackbox | |
155 |
$ |
|
158 | $ mv .hg/blackbox.log .hg/blackbox.log- | |
156 |
$ |
|
159 | $ mkdir .hg/blackbox.log | |
157 |
$ |
|
160 | $ sed -e 's/\(.*test1.*\)/#\1/; s#\(.*commit2.*\)#os.rmdir(".hg/blackbox.log")\nos.rename(".hg/blackbox.log-", ".hg/blackbox.log")\n\1#' $TESTDIR/test-dispatch.py > ../test-dispatch.py | |
@@ -178,9 +181,9 b' log rotation' | |||||
178 |
|
181 | |||
179 | result: None |
|
182 | result: None | |
180 | $ hg blackbox |
|
183 | $ hg blackbox | |
181 | 1970/01/01 00:00:00 bob (5000)> blackbox |
|
184 | 1970/01/01 00:00:00 bob @0000000000000000000000000000000000000000 (5000)> blackbox | |
182 | 1970/01/01 00:00:00 bob (5000)> blackbox exited 0 after * seconds (glob) |
|
185 | 1970/01/01 00:00:00 bob @(unknown) (5000)> blackbox exited 0 after * seconds (glob) | |
183 | 1970/01/01 00:00:00 bob (5000)> blackbox |
|
186 | 1970/01/01 00:00:00 bob @45589e459b2edfbf3dbde7e01f611d2c1e7453d7 (5000)> blackbox | |
184 |
|
187 | |||
185 | cleanup |
|
188 | cleanup | |
186 | $ cd .. |
|
189 | $ cd .. |
@@ -68,11 +68,11 b' Hiding a non-tip changeset should change' | |||||
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 (5000)> tags |
|
71 | 1970/01/01 00:00:00 bob @2942a772f72a444bef4bef13874d515f50fa27b6 (5000)> tags | |
72 | 1970/01/01 00:00:00 bob (5000)> 2/2 cache hits/lookups in * seconds (glob) |
|
72 | 1970/01/01 00:00:00 bob @2942a772f72a444bef4bef13874d515f50fa27b6 (5000)> 2/2 cache hits/lookups in * seconds (glob) | |
73 | 1970/01/01 00:00:00 bob (5000)> writing .hg/cache/tags2-visible with 2 tags |
|
73 | 1970/01/01 00:00:00 bob @2942a772f72a444bef4bef13874d515f50fa27b6 (5000)> writing .hg/cache/tags2-visible with 2 tags | |
74 | 1970/01/01 00:00:00 bob (5000)> tags exited 0 after * seconds (glob) |
|
74 | 1970/01/01 00:00:00 bob @(unknown) (5000)> tags exited 0 after * seconds (glob) | |
75 | 1970/01/01 00:00:00 bob (5000)> blackbox -l 5 |
|
75 | 1970/01/01 00:00:00 bob @2942a772f72a444bef4bef13874d515f50fa27b6 (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 | |||
@@ -88,11 +88,11 b' Hiding another changeset should cause th' | |||||
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 (5000)> tags |
|
91 | 1970/01/01 00:00:00 bob @2942a772f72a444bef4bef13874d515f50fa27b6 (5000)> tags | |
92 | 1970/01/01 00:00:00 bob (5000)> 1/1 cache hits/lookups in * seconds (glob) |
|
92 | 1970/01/01 00:00:00 bob @2942a772f72a444bef4bef13874d515f50fa27b6 (5000)> 1/1 cache hits/lookups in * seconds (glob) | |
93 | 1970/01/01 00:00:00 bob (5000)> writing .hg/cache/tags2-visible with 1 tags |
|
93 | 1970/01/01 00:00:00 bob @2942a772f72a444bef4bef13874d515f50fa27b6 (5000)> writing .hg/cache/tags2-visible with 1 tags | |
94 | 1970/01/01 00:00:00 bob (5000)> tags exited 0 after * seconds (glob) |
|
94 | 1970/01/01 00:00:00 bob @(unknown) (5000)> tags exited 0 after * seconds (glob) | |
95 | 1970/01/01 00:00:00 bob (5000)> blackbox -l 5 |
|
95 | 1970/01/01 00:00:00 bob @2942a772f72a444bef4bef13874d515f50fa27b6 (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 | |||
@@ -109,8 +109,8 b' Resolving tags on an unfiltered repo wri' | |||||
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 (5000)> --hidden tags |
|
112 | 1970/01/01 00:00:00 bob @2942a772f72a444bef4bef13874d515f50fa27b6 (5000)> --hidden tags | |
113 | 1970/01/01 00:00:00 bob (5000)> 2/2 cache hits/lookups in * seconds (glob) |
|
113 | 1970/01/01 00:00:00 bob @2942a772f72a444bef4bef13874d515f50fa27b6 (5000)> 2/2 cache hits/lookups in * seconds (glob) | |
114 | 1970/01/01 00:00:00 bob (5000)> writing .hg/cache/tags2 with 3 tags |
|
114 | 1970/01/01 00:00:00 bob @2942a772f72a444bef4bef13874d515f50fa27b6 (5000)> writing .hg/cache/tags2 with 3 tags | |
115 | 1970/01/01 00:00:00 bob (5000)> --hidden tags exited 0 after * seconds (glob) |
|
115 | 1970/01/01 00:00:00 bob @(unknown) (5000)> --hidden tags exited 0 after * seconds (glob) | |
116 | 1970/01/01 00:00:00 bob (5000)> blackbox -l 5 |
|
116 | 1970/01/01 00:00:00 bob @2942a772f72a444bef4bef13874d515f50fa27b6 (5000)> blackbox -l 5 |
@@ -137,12 +137,12 b' Tag cache debug info written to blackbox' | |||||
137 | $ hg identify |
|
137 | $ hg identify | |
138 | b9154636be93 tip |
|
138 | b9154636be93 tip | |
139 | $ hg blackbox -l 6 |
|
139 | $ hg blackbox -l 6 | |
140 | 1970/01/01 00:00:00 bob (5000)> identify |
|
140 | 1970/01/01 00:00:00 bob @b9154636be938d3d431e75a7c906504a079bfe07 (5000)> identify | |
141 | 1970/01/01 00:00:00 bob (5000)> writing 48 bytes to cache/hgtagsfnodes1 |
|
141 | 1970/01/01 00:00:00 bob @b9154636be938d3d431e75a7c906504a079bfe07 (5000)> writing 48 bytes to cache/hgtagsfnodes1 | |
142 | 1970/01/01 00:00:00 bob (5000)> 0/1 cache hits/lookups in * seconds (glob) |
|
142 | 1970/01/01 00:00:00 bob @b9154636be938d3d431e75a7c906504a079bfe07 (5000)> 0/1 cache hits/lookups in * seconds (glob) | |
143 | 1970/01/01 00:00:00 bob (5000)> writing .hg/cache/tags2-visible with 1 tags |
|
143 | 1970/01/01 00:00:00 bob @b9154636be938d3d431e75a7c906504a079bfe07 (5000)> writing .hg/cache/tags2-visible with 1 tags | |
144 | 1970/01/01 00:00:00 bob (5000)> identify exited 0 after * seconds (glob) |
|
144 | 1970/01/01 00:00:00 bob @(unknown) (5000)> identify exited 0 after * seconds (glob) | |
145 | 1970/01/01 00:00:00 bob (5000)> blackbox -l 6 |
|
145 | 1970/01/01 00:00:00 bob @b9154636be938d3d431e75a7c906504a079bfe07 (5000)> blackbox -l 6 | |
146 |
|
146 | |||
147 | Failure to acquire lock results in no write |
|
147 | Failure to acquire lock results in no write | |
148 |
|
148 | |||
@@ -151,12 +151,12 b' Failure to acquire lock results in no wr' | |||||
151 | $ hg identify |
|
151 | $ hg identify | |
152 | b9154636be93 tip |
|
152 | b9154636be93 tip | |
153 | $ hg blackbox -l 6 |
|
153 | $ hg blackbox -l 6 | |
154 | 1970/01/01 00:00:00 bob (5000)> identify |
|
154 | 1970/01/01 00:00:00 bob @b9154636be938d3d431e75a7c906504a079bfe07 (5000)> identify | |
155 | 1970/01/01 00:00:00 bob (5000)> not writing .hg/cache/hgtagsfnodes1 because lock cannot be acquired |
|
155 | 1970/01/01 00:00:00 bob @b9154636be938d3d431e75a7c906504a079bfe07 (5000)> not writing .hg/cache/hgtagsfnodes1 because lock cannot be acquired | |
156 | 1970/01/01 00:00:00 bob (5000)> 0/1 cache hits/lookups in * seconds (glob) |
|
156 | 1970/01/01 00:00:00 bob @b9154636be938d3d431e75a7c906504a079bfe07 (5000)> 0/1 cache hits/lookups in * seconds (glob) | |
157 | 1970/01/01 00:00:00 bob (5000)> writing .hg/cache/tags2-visible with 1 tags |
|
157 | 1970/01/01 00:00:00 bob @b9154636be938d3d431e75a7c906504a079bfe07 (5000)> writing .hg/cache/tags2-visible with 1 tags | |
158 | 1970/01/01 00:00:00 bob (5000)> identify exited 0 after * seconds (glob) |
|
158 | 1970/01/01 00:00:00 bob @(unknown) (5000)> identify exited 0 after * seconds (glob) | |
159 | 1970/01/01 00:00:00 bob (5000)> blackbox -l 6 |
|
159 | 1970/01/01 00:00:00 bob @b9154636be938d3d431e75a7c906504a079bfe07 (5000)> blackbox -l 6 | |
160 |
|
160 | |||
161 | $ fnodescacheexists |
|
161 | $ fnodescacheexists | |
162 | no fnodes cache |
|
162 | no fnodes cache | |
@@ -351,12 +351,12 b' Extra junk data at the end should get ov' | |||||
351 | bar 1:78391a272241 |
|
351 | bar 1:78391a272241 | |
352 |
|
352 | |||
353 | $ hg blackbox -l 6 |
|
353 | $ hg blackbox -l 6 | |
354 | 1970/01/01 00:00:00 bob (5000)> tags |
|
354 | 1970/01/01 00:00:00 bob @8dbfe60eff306a54259cfe007db9e330e7ecf866 (5000)> tags | |
355 | 1970/01/01 00:00:00 bob (5000)> writing 24 bytes to cache/hgtagsfnodes1 |
|
355 | 1970/01/01 00:00:00 bob @8dbfe60eff306a54259cfe007db9e330e7ecf866 (5000)> writing 24 bytes to cache/hgtagsfnodes1 | |
356 | 1970/01/01 00:00:00 bob (5000)> 2/3 cache hits/lookups in * seconds (glob) |
|
356 | 1970/01/01 00:00:00 bob @8dbfe60eff306a54259cfe007db9e330e7ecf866 (5000)> 2/3 cache hits/lookups in * seconds (glob) | |
357 | 1970/01/01 00:00:00 bob (5000)> writing .hg/cache/tags2-visible with 1 tags |
|
357 | 1970/01/01 00:00:00 bob @8dbfe60eff306a54259cfe007db9e330e7ecf866 (5000)> writing .hg/cache/tags2-visible with 1 tags | |
358 | 1970/01/01 00:00:00 bob (5000)> tags exited 0 after * seconds (glob) |
|
358 | 1970/01/01 00:00:00 bob @(unknown) (5000)> tags exited 0 after * seconds (glob) | |
359 | 1970/01/01 00:00:00 bob (5000)> blackbox -l 6 |
|
359 | 1970/01/01 00:00:00 bob @8dbfe60eff306a54259cfe007db9e330e7ecf866 (5000)> blackbox -l 6 | |
360 |
|
360 | |||
361 | #if unix-permissions no-root |
|
361 | #if unix-permissions no-root | |
362 | Errors writing to .hgtags fnodes cache are silently ignored |
|
362 | Errors writing to .hgtags fnodes cache are silently ignored | |
@@ -372,12 +372,12 b' Errors writing to .hgtags fnodes cache a' | |||||
372 | bar 1:78391a272241 |
|
372 | bar 1:78391a272241 | |
373 |
|
373 | |||
374 | $ hg blackbox -l 6 |
|
374 | $ hg blackbox -l 6 | |
375 | 1970/01/01 00:00:00 bob (5000)> tags |
|
375 | 1970/01/01 00:00:00 bob @b968051b5cf3f624b771779c6d5f84f1d4c3fb5d (5000)> tags | |
376 |
1970/01/01 00:00:00 bob (5000)> couldn't write cache/hgtagsfnodes1: [Errno 13] Permission denied: '$TESTTMP/t2/.hg/cache/hgtagsfnodes1' |
|
376 | 1970/01/01 00:00:00 bob @b968051b5cf3f624b771779c6d5f84f1d4c3fb5d (5000)> couldn't write cache/hgtagsfnodes1: [Errno 13] Permission denied: '$TESTTMP/t2/.hg/cache/hgtagsfnodes1' | |
377 | 1970/01/01 00:00:00 bob (5000)> 2/3 cache hits/lookups in * seconds (glob) |
|
377 | 1970/01/01 00:00:00 bob @b968051b5cf3f624b771779c6d5f84f1d4c3fb5d (5000)> 2/3 cache hits/lookups in * seconds (glob) | |
378 | 1970/01/01 00:00:00 bob (5000)> writing .hg/cache/tags2-visible with 1 tags |
|
378 | 1970/01/01 00:00:00 bob @b968051b5cf3f624b771779c6d5f84f1d4c3fb5d (5000)> writing .hg/cache/tags2-visible with 1 tags | |
379 | 1970/01/01 00:00:00 bob (5000)> tags exited 0 after * seconds (glob) |
|
379 | 1970/01/01 00:00:00 bob @(unknown) (5000)> tags exited 0 after * seconds (glob) | |
380 | 1970/01/01 00:00:00 bob (5000)> blackbox -l 6 |
|
380 | 1970/01/01 00:00:00 bob @b968051b5cf3f624b771779c6d5f84f1d4c3fb5d (5000)> blackbox -l 6 | |
381 |
|
381 | |||
382 | $ chmod a+w .hg/cache/hgtagsfnodes1 |
|
382 | $ chmod a+w .hg/cache/hgtagsfnodes1 | |
383 |
|
383 | |||
@@ -387,12 +387,12 b' Errors writing to .hgtags fnodes cache a' | |||||
387 | bar 1:78391a272241 |
|
387 | bar 1:78391a272241 | |
388 |
|
388 | |||
389 | $ hg blackbox -l 6 |
|
389 | $ hg blackbox -l 6 | |
390 | 1970/01/01 00:00:00 bob (5000)> tags |
|
390 | 1970/01/01 00:00:00 bob @b968051b5cf3f624b771779c6d5f84f1d4c3fb5d (5000)> tags | |
391 | 1970/01/01 00:00:00 bob (5000)> writing 24 bytes to cache/hgtagsfnodes1 |
|
391 | 1970/01/01 00:00:00 bob @b968051b5cf3f624b771779c6d5f84f1d4c3fb5d (5000)> writing 24 bytes to cache/hgtagsfnodes1 | |
392 | 1970/01/01 00:00:00 bob (5000)> 2/3 cache hits/lookups in * seconds (glob) |
|
392 | 1970/01/01 00:00:00 bob @b968051b5cf3f624b771779c6d5f84f1d4c3fb5d (5000)> 2/3 cache hits/lookups in * seconds (glob) | |
393 | 1970/01/01 00:00:00 bob (5000)> writing .hg/cache/tags2-visible with 1 tags |
|
393 | 1970/01/01 00:00:00 bob @b968051b5cf3f624b771779c6d5f84f1d4c3fb5d (5000)> writing .hg/cache/tags2-visible with 1 tags | |
394 | 1970/01/01 00:00:00 bob (5000)> tags exited 0 after * seconds (glob) |
|
394 | 1970/01/01 00:00:00 bob @(unknown) (5000)> tags exited 0 after * seconds (glob) | |
395 | 1970/01/01 00:00:00 bob (5000)> blackbox -l 6 |
|
395 | 1970/01/01 00:00:00 bob @b968051b5cf3f624b771779c6d5f84f1d4c3fb5d (5000)> blackbox -l 6 | |
396 |
|
396 | |||
397 | $ f --size .hg/cache/hgtagsfnodes1 |
|
397 | $ f --size .hg/cache/hgtagsfnodes1 | |
398 | .hg/cache/hgtagsfnodes1: size=168 |
|
398 | .hg/cache/hgtagsfnodes1: size=168 | |
@@ -416,11 +416,11 b" Stripping doesn't truncate the tags cach" | |||||
416 | bar 1:78391a272241 |
|
416 | bar 1:78391a272241 | |
417 |
|
417 | |||
418 | $ hg blackbox -l 5 |
|
418 | $ hg blackbox -l 5 | |
419 | 1970/01/01 00:00:00 bob (5000)> writing 24 bytes to cache/hgtagsfnodes1 |
|
419 | 1970/01/01 00:00:00 bob @0c192d7d5e6b78a714de54a2e9627952a877e25a (5000)> writing 24 bytes to cache/hgtagsfnodes1 | |
420 | 1970/01/01 00:00:00 bob (5000)> 2/3 cache hits/lookups in * seconds (glob) |
|
420 | 1970/01/01 00:00:00 bob @0c192d7d5e6b78a714de54a2e9627952a877e25a (5000)> 2/3 cache hits/lookups in * seconds (glob) | |
421 | 1970/01/01 00:00:00 bob (5000)> writing .hg/cache/tags2-visible with 1 tags |
|
421 | 1970/01/01 00:00:00 bob @0c192d7d5e6b78a714de54a2e9627952a877e25a (5000)> writing .hg/cache/tags2-visible with 1 tags | |
422 | 1970/01/01 00:00:00 bob (5000)> tags exited 0 after * seconds (glob) |
|
422 | 1970/01/01 00:00:00 bob @(unknown) (5000)> tags exited 0 after * seconds (glob) | |
423 | 1970/01/01 00:00:00 bob (5000)> blackbox -l 5 |
|
423 | 1970/01/01 00:00:00 bob @0c192d7d5e6b78a714de54a2e9627952a877e25a (5000)> blackbox -l 5 | |
424 |
|
424 | |||
425 | $ f --size .hg/cache/hgtagsfnodes1 |
|
425 | $ f --size .hg/cache/hgtagsfnodes1 | |
426 | .hg/cache/hgtagsfnodes1: size=120 |
|
426 | .hg/cache/hgtagsfnodes1: size=120 | |
@@ -433,12 +433,12 b" Stripping doesn't truncate the tags cach" | |||||
433 | bar 1:78391a272241 |
|
433 | bar 1:78391a272241 | |
434 |
|
434 | |||
435 | $ hg blackbox -l 6 |
|
435 | $ hg blackbox -l 6 | |
436 | 1970/01/01 00:00:00 bob (5000)> tags |
|
436 | 1970/01/01 00:00:00 bob @035f65efb448350f4772141702a81ab1df48c465 (5000)> tags | |
437 | 1970/01/01 00:00:00 bob (5000)> writing 24 bytes to cache/hgtagsfnodes1 |
|
437 | 1970/01/01 00:00:00 bob @035f65efb448350f4772141702a81ab1df48c465 (5000)> writing 24 bytes to cache/hgtagsfnodes1 | |
438 | 1970/01/01 00:00:00 bob (5000)> 2/3 cache hits/lookups in * seconds (glob) |
|
438 | 1970/01/01 00:00:00 bob @035f65efb448350f4772141702a81ab1df48c465 (5000)> 2/3 cache hits/lookups in * seconds (glob) | |
439 | 1970/01/01 00:00:00 bob (5000)> writing .hg/cache/tags2-visible with 1 tags |
|
439 | 1970/01/01 00:00:00 bob @035f65efb448350f4772141702a81ab1df48c465 (5000)> writing .hg/cache/tags2-visible with 1 tags | |
440 | 1970/01/01 00:00:00 bob (5000)> tags exited 0 after * seconds (glob) |
|
440 | 1970/01/01 00:00:00 bob @(unknown) (5000)> tags exited 0 after * seconds (glob) | |
441 | 1970/01/01 00:00:00 bob (5000)> blackbox -l 6 |
|
441 | 1970/01/01 00:00:00 bob @035f65efb448350f4772141702a81ab1df48c465 (5000)> blackbox -l 6 | |
442 | $ f --size .hg/cache/hgtagsfnodes1 |
|
442 | $ f --size .hg/cache/hgtagsfnodes1 | |
443 | .hg/cache/hgtagsfnodes1: size=144 |
|
443 | .hg/cache/hgtagsfnodes1: size=144 | |
444 |
|
444 |
General Comments 0
You need to be logged in to leave comments.
Login now