D6744: perf: don't try to call `util.queue` on Mercurial version before it existed

martinvonz (Martin von Zweigbergk) phabricator at mercurial-scm.org
Tue Aug 20 11:36:27 EDT 2019


Closed by commit rHGb1e53b192497: perf: don't try to call `util.queue` on Mercurial version before it existed (authored by martinvonz).
This revision was automatically updated to reflect the committed changes.

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D6744?vs=16264&id=16273

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

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

AFFECTED FILES
  contrib/perf.py

CHANGE DETAILS

diff --git a/contrib/perf.py b/contrib/perf.py
--- a/contrib/perf.py
+++ b/contrib/perf.py
@@ -149,7 +149,7 @@
     try:
         queue = pycompat.queue
     except (NameError, AttributeError, ImportError):
-        queue = util.queue
+        import Queue as queue
 
 try:
     from mercurial import logcmdutil



To: martinvonz, #hg-reviewers, pulkit
Cc: mercurial-devel


More information about the Mercurial-devel mailing list