Show More
@@ -107,9 +107,11 b' def wrapui(ui):' | |||||
107 | if blackbox: |
|
107 | if blackbox: | |
108 | date = util.datestr(None, '%Y/%m/%d %H:%M:%S') |
|
108 | date = util.datestr(None, '%Y/%m/%d %H:%M:%S') | |
109 | user = util.getuser() |
|
109 | user = util.getuser() | |
|
110 | pid = str(os.getpid()) | |||
110 | formattedmsg = msg[0] % msg[1:] |
|
111 | formattedmsg = msg[0] % msg[1:] | |
111 | try: |
|
112 | try: | |
112 |
blackbox.write('%s %s> %s' % |
|
113 | blackbox.write('%s %s (%s)> %s' % | |
|
114 | (date, user, pid, formattedmsg)) | |||
113 | except IOError as err: |
|
115 | except IOError as err: | |
114 | self.debug('warning: cannot write to blackbox.log: %s\n' % |
|
116 | self.debug('warning: cannot write to blackbox.log: %s\n' % | |
115 | err.strerror) |
|
117 | err.strerror) |
@@ -13,8 +13,8 b' command, exit codes, and duration' | |||||
13 | $ echo a > a |
|
13 | $ echo a > a | |
14 | $ hg add a |
|
14 | $ hg add a | |
15 | $ hg blackbox |
|
15 | $ hg blackbox | |
16 | 1970/01/01 00:00:00 bob> add a |
|
16 | 1970/01/01 00:00:00 bob (*)> add a (glob) | |
17 | 1970/01/01 00:00:00 bob> add a exited 0 after * seconds (glob) |
|
17 | 1970/01/01 00:00:00 bob (*)> add a exited 0 after * seconds (glob) | |
18 |
|
18 | |||
19 | incoming change tracking |
|
19 | incoming change tracking | |
20 |
|
20 | |||
@@ -44,11 +44,11 b' clone, commit, pull' | |||||
44 | added 1 changesets with 1 changes to 1 files |
|
44 | added 1 changesets with 1 changes to 1 files | |
45 | (run 'hg update' to get a working copy) |
|
45 | (run 'hg update' to get a working copy) | |
46 | $ hg blackbox -l 5 |
|
46 | $ hg blackbox -l 5 | |
47 | 1970/01/01 00:00:00 bob> pull |
|
47 | 1970/01/01 00:00:00 bob (*)> pull (glob) | |
48 | 1970/01/01 00:00:00 bob> updated served branch cache in ?.???? seconds (glob) |
|
48 | 1970/01/01 00:00:00 bob (*)> updated served branch cache in ?.???? seconds (glob) | |
49 | 1970/01/01 00:00:00 bob> wrote served branch cache with 1 labels and 2 nodes |
|
49 | 1970/01/01 00:00:00 bob (*)> wrote served branch cache with 1 labels and 2 nodes (glob) | |
50 | 1970/01/01 00:00:00 bob> 1 incoming changes - new heads: d02f48003e62 |
|
50 | 1970/01/01 00:00:00 bob (*)> 1 incoming changes - new heads: d02f48003e62 (glob) | |
51 | 1970/01/01 00:00:00 bob> pull exited 0 after * seconds (glob) |
|
51 | 1970/01/01 00:00:00 bob (*)> pull exited 0 after * seconds (glob) | |
52 |
|
52 | |||
53 | we must not cause a failure if we cannot write to the log |
|
53 | we must not cause a failure if we cannot write to the log | |
54 |
|
54 | |||
@@ -106,11 +106,11 b' backup bundles get logged' | |||||
106 | 0 files updated, 0 files merged, 1 files removed, 0 files unresolved |
|
106 | 0 files updated, 0 files merged, 1 files removed, 0 files unresolved | |
107 | saved backup bundle to $TESTTMP/blackboxtest2/.hg/strip-backup/*-backup.hg (glob) |
|
107 | saved backup bundle to $TESTTMP/blackboxtest2/.hg/strip-backup/*-backup.hg (glob) | |
108 | $ hg blackbox -l 5 |
|
108 | $ hg blackbox -l 5 | |
109 | 1970/01/01 00:00:00 bob> strip tip |
|
109 | 1970/01/01 00:00:00 bob (*)> strip tip (glob) | |
110 | 1970/01/01 00:00:00 bob> saved backup bundle to $TESTTMP/blackboxtest2/.hg/strip-backup/*-backup.hg (glob) |
|
110 | 1970/01/01 00:00:00 bob (*)> saved backup bundle to $TESTTMP/blackboxtest2/.hg/strip-backup/*-backup.hg (glob) | |
111 | 1970/01/01 00:00:00 bob> updated base branch cache in ?.???? seconds (glob) |
|
111 | 1970/01/01 00:00:00 bob (*)> updated base branch cache in ?.???? seconds (glob) | |
112 | 1970/01/01 00:00:00 bob> wrote base branch cache with 1 labels and 2 nodes |
|
112 | 1970/01/01 00:00:00 bob (*)> wrote base branch cache with 1 labels and 2 nodes (glob) | |
113 | 1970/01/01 00:00:00 bob> strip tip exited 0 after * seconds (glob) |
|
113 | 1970/01/01 00:00:00 bob (*)> strip tip exited 0 after * seconds (glob) | |
114 |
|
114 | |||
115 | extension and python hooks - use the eol extension for a pythonhook |
|
115 | extension and python hooks - use the eol extension for a pythonhook | |
116 |
|
116 | |||
@@ -122,11 +122,11 b' extension and python hooks - use the eol' | |||||
122 | 1 files updated, 0 files merged, 0 files removed, 0 files unresolved |
|
122 | 1 files updated, 0 files merged, 0 files removed, 0 files unresolved | |
123 | hooked |
|
123 | hooked | |
124 | $ hg blackbox -l 5 |
|
124 | $ hg blackbox -l 5 | |
125 | 1970/01/01 00:00:00 bob> update |
|
125 | 1970/01/01 00:00:00 bob (*)> update (glob) | |
126 | 1970/01/01 00:00:00 bob> writing .hg/cache/tags2-visible with 0 tags |
|
126 | 1970/01/01 00:00:00 bob (*)> writing .hg/cache/tags2-visible with 0 tags (glob) | |
127 | 1970/01/01 00:00:00 bob> pythonhook-preupdate: hgext.eol.preupdate finished in * seconds (glob) |
|
127 | 1970/01/01 00:00:00 bob (*)> pythonhook-preupdate: hgext.eol.preupdate finished in * seconds (glob) | |
128 | 1970/01/01 00:00:00 bob> exthook-update: echo hooked finished in * seconds (glob) |
|
128 | 1970/01/01 00:00:00 bob (*)> exthook-update: echo hooked finished in * seconds (glob) | |
129 | 1970/01/01 00:00:00 bob> update exited 0 after * seconds (glob) |
|
129 | 1970/01/01 00:00:00 bob (*)> update exited 0 after * seconds (glob) | |
130 |
|
130 | |||
131 | log rotation |
|
131 | log rotation | |
132 |
|
132 |
@@ -68,10 +68,10 b' Hiding a non-tip changeset should change' | |||||
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 (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 |
|
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 |
|
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 | |||
@@ -87,10 +87,10 b' Hiding another changeset should cause th' | |||||
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 (glob) | |
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 .hg/cache/tags2-visible with 1 tags |
|
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> 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 | |||
@@ -107,7 +107,7 b' Resolving tags on an unfiltered repo wri' | |||||
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 (glob) | |
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 .hg/cache/tags2 with 3 tags |
|
112 | 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) |
|
113 | 1970/01/01 00:00:00 bob (*)> --hidden tags exited 0 after * seconds (glob) |
@@ -137,11 +137,11 b' Tag cache debug info written to blackbox' | |||||
137 | $ hg identify |
|
137 | $ hg identify | |
138 | b9154636be93 tip |
|
138 | b9154636be93 tip | |
139 | $ hg blackbox -l 5 |
|
139 | $ hg blackbox -l 5 | |
140 | 1970/01/01 00:00:00 bob> identify |
|
140 | 1970/01/01 00:00:00 bob (*)> identify (glob) | |
141 | 1970/01/01 00:00:00 bob> writing 48 bytes to cache/hgtagsfnodes1 |
|
141 | 1970/01/01 00:00:00 bob (*)> writing 48 bytes to cache/hgtagsfnodes1 (glob) | |
142 | 1970/01/01 00:00:00 bob> 0/1 cache hits/lookups in * seconds (glob) |
|
142 | 1970/01/01 00:00:00 bob (*)> 0/1 cache hits/lookups in * seconds (glob) | |
143 | 1970/01/01 00:00:00 bob> writing .hg/cache/tags2-visible with 1 tags |
|
143 | 1970/01/01 00:00:00 bob (*)> writing .hg/cache/tags2-visible with 1 tags (glob) | |
144 | 1970/01/01 00:00:00 bob> identify exited 0 after ?.?? seconds (glob) |
|
144 | 1970/01/01 00:00:00 bob (*)> identify exited 0 after ?.?? seconds (glob) | |
145 |
|
145 | |||
146 | Failure to acquire lock results in no write |
|
146 | Failure to acquire lock results in no write | |
147 |
|
147 | |||
@@ -150,11 +150,11 b' Failure to acquire lock results in no wr' | |||||
150 | $ hg identify |
|
150 | $ hg identify | |
151 | b9154636be93 tip |
|
151 | b9154636be93 tip | |
152 | $ hg blackbox -l 5 |
|
152 | $ hg blackbox -l 5 | |
153 | 1970/01/01 00:00:00 bob> identify |
|
153 | 1970/01/01 00:00:00 bob (*)> identify (glob) | |
154 | 1970/01/01 00:00:00 bob> not writing .hg/cache/hgtagsfnodes1 because lock cannot be acquired |
|
154 | 1970/01/01 00:00:00 bob (*)> not writing .hg/cache/hgtagsfnodes1 because lock cannot be acquired (glob) | |
155 | 1970/01/01 00:00:00 bob> 0/1 cache hits/lookups in * seconds (glob) |
|
155 | 1970/01/01 00:00:00 bob (*)> 0/1 cache hits/lookups in * seconds (glob) | |
156 | 1970/01/01 00:00:00 bob> writing .hg/cache/tags2-visible with 1 tags |
|
156 | 1970/01/01 00:00:00 bob (*)> writing .hg/cache/tags2-visible with 1 tags (glob) | |
157 | 1970/01/01 00:00:00 bob> identify exited 0 after * seconds (glob) |
|
157 | 1970/01/01 00:00:00 bob (*)> identify exited 0 after * seconds (glob) | |
158 |
|
158 | |||
159 | $ fnodescacheexists |
|
159 | $ fnodescacheexists | |
160 | no fnodes cache |
|
160 | no fnodes cache | |
@@ -349,11 +349,11 b' Extra junk data at the end should get ov' | |||||
349 | bar 1:78391a272241 |
|
349 | bar 1:78391a272241 | |
350 |
|
350 | |||
351 | $ hg blackbox -l 5 |
|
351 | $ hg blackbox -l 5 | |
352 | 1970/01/01 00:00:00 bob> tags |
|
352 | 1970/01/01 00:00:00 bob (*)> tags (glob) | |
353 | 1970/01/01 00:00:00 bob> writing 24 bytes to cache/hgtagsfnodes1 |
|
353 | 1970/01/01 00:00:00 bob (*)> writing 24 bytes to cache/hgtagsfnodes1 (glob) | |
354 | 1970/01/01 00:00:00 bob> 2/3 cache hits/lookups in * seconds (glob) |
|
354 | 1970/01/01 00:00:00 bob (*)> 2/3 cache hits/lookups in * seconds (glob) | |
355 | 1970/01/01 00:00:00 bob> writing .hg/cache/tags2-visible with 1 tags |
|
355 | 1970/01/01 00:00:00 bob (*)> writing .hg/cache/tags2-visible with 1 tags (glob) | |
356 | 1970/01/01 00:00:00 bob> tags exited 0 after * seconds (glob) |
|
356 | 1970/01/01 00:00:00 bob (*)> tags exited 0 after * seconds (glob) | |
357 |
|
357 | |||
358 | #if unix-permissions no-root |
|
358 | #if unix-permissions no-root | |
359 | Errors writing to .hgtags fnodes cache are silently ignored |
|
359 | Errors writing to .hgtags fnodes cache are silently ignored | |
@@ -369,11 +369,11 b' Errors writing to .hgtags fnodes cache a' | |||||
369 | bar 1:78391a272241 |
|
369 | bar 1:78391a272241 | |
370 |
|
370 | |||
371 | $ hg blackbox -l 5 |
|
371 | $ hg blackbox -l 5 | |
372 | 1970/01/01 00:00:00 bob> tags |
|
372 | 1970/01/01 00:00:00 bob (*)> tags (glob) | |
373 | 1970/01/01 00:00:00 bob> couldn't write cache/hgtagsfnodes1: [Errno 13] Permission denied: '$TESTTMP/t2/.hg/cache/hgtagsfnodes1' |
|
373 | 1970/01/01 00:00:00 bob (*)> couldn't write cache/hgtagsfnodes1: [Errno 13] Permission denied: '$TESTTMP/t2/.hg/cache/hgtagsfnodes1' (glob) | |
374 | 1970/01/01 00:00:00 bob> 2/3 cache hits/lookups in * seconds (glob) |
|
374 | 1970/01/01 00:00:00 bob (*)> 2/3 cache hits/lookups in * seconds (glob) | |
375 | 1970/01/01 00:00:00 bob> writing .hg/cache/tags2-visible with 1 tags |
|
375 | 1970/01/01 00:00:00 bob (*)> writing .hg/cache/tags2-visible with 1 tags (glob) | |
376 | 1970/01/01 00:00:00 bob> tags exited 0 after * seconds (glob) |
|
376 | 1970/01/01 00:00:00 bob (*)> tags exited 0 after * seconds (glob) | |
377 |
|
377 | |||
378 | $ chmod a+w .hg/cache/hgtagsfnodes1 |
|
378 | $ chmod a+w .hg/cache/hgtagsfnodes1 | |
379 |
|
379 | |||
@@ -383,11 +383,11 b' Errors writing to .hgtags fnodes cache a' | |||||
383 | bar 1:78391a272241 |
|
383 | bar 1:78391a272241 | |
384 |
|
384 | |||
385 | $ hg blackbox -l 5 |
|
385 | $ hg blackbox -l 5 | |
386 | 1970/01/01 00:00:00 bob> tags |
|
386 | 1970/01/01 00:00:00 bob (*)> tags (glob) | |
387 | 1970/01/01 00:00:00 bob> writing 24 bytes to cache/hgtagsfnodes1 |
|
387 | 1970/01/01 00:00:00 bob (*)> writing 24 bytes to cache/hgtagsfnodes1 (glob) | |
388 | 1970/01/01 00:00:00 bob> 2/3 cache hits/lookups in * seconds (glob) |
|
388 | 1970/01/01 00:00:00 bob (*)> 2/3 cache hits/lookups in * seconds (glob) | |
389 | 1970/01/01 00:00:00 bob> writing .hg/cache/tags2-visible with 1 tags |
|
389 | 1970/01/01 00:00:00 bob (*)> writing .hg/cache/tags2-visible with 1 tags (glob) | |
390 | 1970/01/01 00:00:00 bob> tags exited 0 after * seconds (glob) |
|
390 | 1970/01/01 00:00:00 bob (*)> tags exited 0 after * seconds (glob) | |
391 |
|
391 | |||
392 | $ f --size .hg/cache/hgtagsfnodes1 |
|
392 | $ f --size .hg/cache/hgtagsfnodes1 | |
393 | .hg/cache/hgtagsfnodes1: size=168 |
|
393 | .hg/cache/hgtagsfnodes1: size=168 | |
@@ -411,10 +411,10 b" Stripping doesn't truncate the tags cach" | |||||
411 | bar 1:78391a272241 |
|
411 | bar 1:78391a272241 | |
412 |
|
412 | |||
413 | $ hg blackbox -l 4 |
|
413 | $ hg blackbox -l 4 | |
414 | 1970/01/01 00:00:00 bob> writing 24 bytes to cache/hgtagsfnodes1 |
|
414 | 1970/01/01 00:00:00 bob (*)> writing 24 bytes to cache/hgtagsfnodes1 (glob) | |
415 | 1970/01/01 00:00:00 bob> 2/3 cache hits/lookups in * seconds (glob) |
|
415 | 1970/01/01 00:00:00 bob (*)> 2/3 cache hits/lookups in * seconds (glob) | |
416 | 1970/01/01 00:00:00 bob> writing .hg/cache/tags2-visible with 1 tags |
|
416 | 1970/01/01 00:00:00 bob (*)> writing .hg/cache/tags2-visible with 1 tags (glob) | |
417 | 1970/01/01 00:00:00 bob> tags exited 0 after * seconds (glob) |
|
417 | 1970/01/01 00:00:00 bob (*)> tags exited 0 after * seconds (glob) | |
418 |
|
418 | |||
419 | $ f --size .hg/cache/hgtagsfnodes1 |
|
419 | $ f --size .hg/cache/hgtagsfnodes1 | |
420 | .hg/cache/hgtagsfnodes1: size=120 |
|
420 | .hg/cache/hgtagsfnodes1: size=120 | |
@@ -427,11 +427,11 b" Stripping doesn't truncate the tags cach" | |||||
427 | bar 1:78391a272241 |
|
427 | bar 1:78391a272241 | |
428 |
|
428 | |||
429 | $ hg blackbox -l 5 |
|
429 | $ hg blackbox -l 5 | |
430 | 1970/01/01 00:00:00 bob> tags |
|
430 | 1970/01/01 00:00:00 bob (*)> tags (glob) | |
431 | 1970/01/01 00:00:00 bob> writing 24 bytes to cache/hgtagsfnodes1 |
|
431 | 1970/01/01 00:00:00 bob (*)> writing 24 bytes to cache/hgtagsfnodes1 (glob) | |
432 | 1970/01/01 00:00:00 bob> 2/3 cache hits/lookups in * seconds (glob) |
|
432 | 1970/01/01 00:00:00 bob (*)> 2/3 cache hits/lookups in * seconds (glob) | |
433 | 1970/01/01 00:00:00 bob> writing .hg/cache/tags2-visible with 1 tags |
|
433 | 1970/01/01 00:00:00 bob (*)> writing .hg/cache/tags2-visible with 1 tags (glob) | |
434 | 1970/01/01 00:00:00 bob> tags exited 0 after * seconds (glob) |
|
434 | 1970/01/01 00:00:00 bob (*)> tags exited 0 after * seconds (glob) | |
435 | $ f --size .hg/cache/hgtagsfnodes1 |
|
435 | $ f --size .hg/cache/hgtagsfnodes1 | |
436 | .hg/cache/hgtagsfnodes1: size=144 |
|
436 | .hg/cache/hgtagsfnodes1: size=144 | |
437 |
|
437 |
General Comments 0
You need to be logged in to leave comments.
Login now