comparison mercurial/manifest.py @ 8209:a1a5a57efe90

replace util.sort with sorted built-in This is marginally faster for small and moderately-sized lists
author Matt Mackall <mpm@selenic.com>
date Sun, 26 Apr 2009 16:50:44 -0500
parents d051342f1ad1
children 46293a0c7e9f
comparison
equal deleted inserted replaced
8208:32a2a1e244f1 8209:a1a5a57efe90
128 _("'\\n' and '\\r' disallowed in filenames: %r") % f) 128 _("'\\n' and '\\r' disallowed in filenames: %r") % f)
129 129
130 # if we're using the listcache, make sure it is valid and 130 # if we're using the listcache, make sure it is valid and
131 # parented by the same node we're diffing against 131 # parented by the same node we're diffing against
132 if not (changed and self.listcache and p1 and self.mapcache[0] == p1): 132 if not (changed and self.listcache and p1 and self.mapcache[0] == p1):
133 files = util.sort(map) 133 files = sorted(map)
134 checkforbidden(files) 134 checkforbidden(files)
135 135
136 # if this is changed to support newlines in filenames, 136 # if this is changed to support newlines in filenames,
137 # be sure to check the templates/ dir again (especially *-raw.tmpl) 137 # be sure to check the templates/ dir again (especially *-raw.tmpl)
138 hex, flags = revlog.hex, map.flags 138 hex, flags = revlog.hex, map.flags