mercurial/dirstate.py
changeset 8209 a1a5a57efe90
parent 8151 127281884959
child 8225 46293a0c7e9f
--- a/mercurial/dirstate.py	Sun Apr 26 16:50:44 2009 -0500
+++ b/mercurial/dirstate.py	Sun Apr 26 16:50:44 2009 -0500
@@ -177,7 +177,7 @@
         return key in self._map
 
     def __iter__(self):
-        for x in util.sort(self._map):
+        for x in sorted(self._map):
             yield x
 
     def parents(self):
@@ -460,7 +460,7 @@
         results = {'.hg': None}
 
         # step 1: find all explicit files
-        for ff in util.sort(files):
+        for ff in sorted(files):
             nf = normalize(normpath(ff))
             if nf in results:
                 continue
@@ -526,7 +526,7 @@
                         results[nf] = None
 
         # step 3: report unseen items in the dmap hash
-        visit = util.sort([f for f in dmap if f not in results and match(f)])
+        visit = sorted([f for f in dmap if f not in results and match(f)])
         for nf, st in zip(visit, util.statfiles([join(i) for i in visit])):
             if not st is None and not getkind(st.st_mode) in (regkind, lnkkind):
                 st = None