mercurial/util.py
changeset 3535 4d97184a06ad
parent 3533 bb44489b901f
child 3568 23f7d9621783
--- a/mercurial/util.py	Fri Oct 27 12:09:33 2006 -0500
+++ b/mercurial/util.py	Fri Oct 27 14:06:32 2006 -0500
@@ -128,10 +128,12 @@
 def unique(g):
     """return the uniq elements of iterable g"""
     seen = {}
+    l = []
     for f in g:
         if f not in seen:
             seen[f] = 1
-            yield f
+            l.append(f)
+    return l
 
 class Abort(Exception):
     """Raised if a command needs to print an error and exit."""