Mercurial > hg
comparison hgext/blackbox.py @ 46600:36f3a64846c8
blackbox: Remove misleading quotes in config example
This example previously looked like quotes were part of configuration file
syntax, and the parsed `date-format` value was the part inside of them.
This is not the case: config syntax only parses quotes in list values.
Instead using that config would result in literal quotes being written to
`.hg/blackbox.log` as part of the date format.
This changes the example to what was probably intended.
Differential Revision: https://phab.mercurial-scm.org/D10011
author | Simon Sapin <simon.sapin@octobus.net> |
---|---|
date | Wed, 17 Feb 2021 13:00:25 +0100 |
parents | 89a2afe31e82 |
children | fe4922564661 |
comparison
equal
deleted
inserted
replaced
46599:1f55cd5b292f | 46600:36f3a64846c8 |
---|---|
36 maxfiles = 3 | 36 maxfiles = 3 |
37 | 37 |
38 [blackbox] | 38 [blackbox] |
39 # Include nanoseconds in log entries with %f (see Python function | 39 # Include nanoseconds in log entries with %f (see Python function |
40 # datetime.datetime.strftime) | 40 # datetime.datetime.strftime) |
41 date-format = '%Y-%m-%d @ %H:%M:%S.%f' | 41 date-format = %Y-%m-%d @ %H:%M:%S.%f |
42 | 42 |
43 """ | 43 """ |
44 | 44 |
45 from __future__ import absolute_import | 45 from __future__ import absolute_import |
46 | 46 |