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

login
register
mail settings
Submitter phabricator
Date Aug. 19, 2019, 5:43 p.m.
Message ID <differential-rev-PHID-DREV-fx2j237vwpwxz4ztkldu-req@mercurial-scm.org>
Download mbox | patch
Permalink /patch/41351/
State Superseded
Headers show

Comments

phabricator - Aug. 19, 2019, 5:43 p.m.
martinvonz created this revision.
Herald added a subscriber: mercurial-devel.
Herald added a reviewer: hg-reviewers.

REPOSITORY
  rHG Mercurial

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

AFFECTED FILES
  contrib/perf.py

CHANGE DETAILS




To: martinvonz, #hg-reviewers
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