mercurial/revset.py
changeset 16834 cafd8a8fb713
parent 16825 b6ef1395d77f
child 16838 d37d221334be
--- a/mercurial/revset.py	Sat Jun 02 15:35:53 2012 -0500
+++ b/mercurial/revset.py	Fri Jun 01 17:05:31 2012 -0700
@@ -5,7 +5,7 @@
 # This software may be used and distributed according to the terms of the
 # GNU General Public License version 2 or any later version.
 
-import re, collections
+import re
 import parser, util, error, discovery, hbisect, phases
 import node
 import bookmarks as bookmarksmod
@@ -17,7 +17,7 @@
     """Like revlog.ancestors(), but supports followfirst."""
     cut = followfirst and 1 or None
     cl = repo.changelog
-    visit = collections.deque(revs)
+    visit = util.deque(revs)
     seen = set([node.nullrev])
     while visit:
         for parent in cl.parentrevs(visit.popleft())[:cut]: