changeset 39259:e00123f63410

util: make timedcm require the label (API) Differential Revision: https://phab.mercurial-scm.org/D4350
author Augie Fackler <augie@google.com>
date Fri, 24 Aug 2018 10:13:27 -0700
parents 331ab85e910b
children 27946fca8a05
files mercurial/util.py
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/util.py	Tue Aug 21 17:15:51 2018 -0400
+++ b/mercurial/util.py	Fri Aug 24 10:13:27 2018 -0700
@@ -36,10 +36,10 @@
 import warnings
 import zlib
 
-from hgdemandimport import tracing
 from .thirdparty import (
     attr,
 )
+from hgdemandimport import tracing
 from . import (
     encoding,
     error,
@@ -2897,7 +2897,7 @@
     __str__ = encoding.strmethod(__bytes__)
 
 @contextlib.contextmanager
-def timedcm(whencefmt='unknown timedcm', *whenceargs):
+def timedcm(whencefmt, *whenceargs):
     """A context manager that produces timing information for a given context.
 
     On entering a timedcmstats instance is produced.