Mercurial > hg
comparison tests/test-rhg.t @ 46601:755c31a1caf9
rhg: Add support for the blackbox extension
Only `command` and `commandfinish` events are logged.
The `dirty`, `logsource`, `track` and `ignore` configuration items
are not supported yet.
To indicate commands executed without Python, a `(rust) ` prefix is added
in corresponding log messages.
Differential Revision: https://phab.mercurial-scm.org/D10012
author | Simon Sapin <simon.sapin@octobus.net> |
---|---|
date | Tue, 16 Feb 2021 13:08:37 +0100 |
parents | 21d3b40b4c0e |
children | 33f2d56acc73 |
comparison
equal
deleted
inserted
replaced
46600:36f3a64846c8 | 46601:755c31a1caf9 |
---|---|
259 $ rhg files | 259 $ rhg files |
260 a | 260 a |
261 $ rhg cat -r 0 a | 261 $ rhg cat -r 0 a |
262 a | 262 a |
263 | 263 |
264 The blackbox extension is supported | |
265 | |
266 $ echo "[extensions]" >> $HGRCPATH | |
267 $ echo "blackbox =" >> $HGRCPATH | |
268 $ echo "[blackbox]" >> $HGRCPATH | |
269 $ echo "maxsize = 1" >> $HGRCPATH | |
270 $ rhg files > /dev/null | |
271 $ cat .hg/blackbox.log | |
272 ????/??/?? ??:??:??.??? * @d3873e73d99ef67873dac33fbcc66268d5d2b6f4 (*)> (rust) files exited 0 after 0.??? seconds (glob) | |
273 $ cat .hg/blackbox.log.1 | |
274 ????/??/?? ??:??:??.??? * @d3873e73d99ef67873dac33fbcc66268d5d2b6f4 (*)> (rust) files (glob) | |
275 |