D7470: profiling: add a missing argument to the ProgrammingError constructor

mharbison72 (Matt Harbison) phabricator at mercurial-scm.org
Fri Nov 22 02:51:09 UTC 2019


Closed by commit rHG882e633ac92c: profiling: add a missing argument to the ProgrammingError constructor (authored by mharbison72).
This revision was automatically updated to reflect the committed changes.

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D7470?vs=18268&id=18274

CHANGES SINCE LAST ACTION
  https://phab.mercurial-scm.org/D7470/new/

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

AFFECTED FILES
  mercurial/profiling.py

CHANGE DETAILS

diff --git a/mercurial/profiling.py b/mercurial/profiling.py
--- a/mercurial/profiling.py
+++ b/mercurial/profiling.py
@@ -204,7 +204,7 @@
 
         If the profiler was already started, this has no effect."""
         if not self._entered:
-            raise error.ProgrammingError()
+            raise error.ProgrammingError(b'use a context manager to start')
         if self._started:
             return
         self._started = True



To: mharbison72, #hg-reviewers, indygreg
Cc: mercurial-devel


More information about the Mercurial-devel mailing list