D10011: blackbox: Remove misleading quotes in config example
SimonSapin
phabricator at mercurial-scm.org
Wed Feb 17 12:59:26 UTC 2021
SimonSapin created this revision.
Herald added a reviewer: hg-reviewers.
Herald added a subscriber: mercurial-patches.
REVISION SUMMARY
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.
REPOSITORY
rHG Mercurial
BRANCH
default
REVISION DETAIL
https://phab.mercurial-scm.org/D10011
AFFECTED FILES
hgext/blackbox.py
CHANGE DETAILS
diff --git a/hgext/blackbox.py b/hgext/blackbox.py
--- a/hgext/blackbox.py
+++ b/hgext/blackbox.py
@@ -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
"""
To: SimonSapin, #hg-reviewers
Cc: mercurial-patches, mercurial-devel
More information about the Mercurial-devel
mailing list