blackbox: Remove misleading quotes in config example
authorSimon Sapin <simon.sapin@octobus.net>
Wed, 17 Feb 2021 13:00:25 +0100
changeset 46639 36f3a64846c8
parent 46638 1f55cd5b292f
child 46640 755c31a1caf9
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
hgext/blackbox.py
--- a/hgext/blackbox.py	Thu Feb 11 15:51:11 2021 +0100
+++ b/hgext/blackbox.py	Wed Feb 17 13:00:25 2021 +0100
@@ -38,7 +38,7 @@
   [blackbox]
   # Include nanoseconds in log entries with %f (see Python function
   # datetime.datetime.strftime)
-  date-format = '%Y-%m-%d @ %H:%M:%S.%f'
+  date-format = %Y-%m-%d @ %H:%M:%S.%f
 
 """