D4350: util: make timedcm require the label

durin42 (Augie Fackler) phabricator at mercurial-scm.org
Fri Aug 24 13:15:48 EDT 2018


This revision was automatically updated to reflect the committed changes.
Closed by commit rHGe00123f63410: util: make timedcm require the label (API) (authored by durin42, committed by ).

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D4350?vs=10500&id=10558

REVISION DETAIL
  https://phab.mercurial-scm.org/D4350

AFFECTED FILES
  mercurial/util.py

CHANGE DETAILS

diff --git a/mercurial/util.py b/mercurial/util.py
--- a/mercurial/util.py
+++ b/mercurial/util.py
@@ -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.



To: durin42, #hg-reviewers
Cc: mercurial-devel


More information about the Mercurial-devel mailing list