util: make timedcm require the label (API)
Differential Revision: https://phab.mercurial-scm.org/D4350
--- 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.