util: make timedcm require the label (API)
authorAugie Fackler <augie@google.com>
Fri, 24 Aug 2018 10:13:27 -0700
changeset 39287 e00123f63410
parent 39286 331ab85e910b
child 39288 27946fca8a05
util: make timedcm require the label (API) Differential Revision: https://phab.mercurial-scm.org/D4350
mercurial/util.py
--- 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.