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

login
register
mail settings
Submitter phabricator
Date Aug. 20, 2019, 3:36 p.m.
Message ID <a28b5c3974a73be71873da41acfd2d37@localhost.localdomain>
Download mbox | patch
Permalink /patch/41360/
State Not Applicable
Headers show

Comments

phabricator - Aug. 20, 2019, 3:36 p.m.
Closed by commit rHGb1e53b192497: perf: don&#039;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




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

Patch

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