Patchwork D5599: remotefilelog: import Queue on Python 2, and queue on Python 3

login
register
mail settings
Submitter phabricator
Date Jan. 16, 2019, 5:22 p.m.
Message ID <612adca6f2da958357314fd80d093d56@localhost.localdomain>
Download mbox | patch
Permalink /patch/37835/
State Not Applicable
Headers show

Comments

phabricator - Jan. 16, 2019, 5:22 p.m.
This revision was automatically updated to reflect the committed changes.
Closed by commit rHG92cf293fd93d: remotefilelog: import Queue on Python 2, and queue on Python 3 (authored by durin42, committed by ).

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D5599?vs=13277&id=13296

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

AFFECTED FILES
  hgext/remotefilelog/basestore.py

CHANGE DETAILS




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

Patch

diff --git a/hgext/remotefilelog/basestore.py b/hgext/remotefilelog/basestore.py
--- a/hgext/remotefilelog/basestore.py
+++ b/hgext/remotefilelog/basestore.py
@@ -305,8 +305,7 @@ 
         cachepath = self._path
 
         # prune cache
-        import Queue
-        queue = Queue.PriorityQueue()
+        queue = pycompat.queue.PriorityQueue()
         originalsize = 0
         size = 0
         count = 0