Mercurial > hg
comparison hgext/convert/gnuarch.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 | 127281884959 |
children | 1b60efdb8bc5 |
comparison
equal
deleted
inserted
replaced
8208:32a2a1e244f1 | 8209:a1a5a57efe90 |
---|---|
166 chgs, cps = self._rendirchanges(src, to); | 166 chgs, cps = self._rendirchanges(src, to); |
167 changes += [(f, rev) for f in chgs] | 167 changes += [(f, rev) for f in chgs] |
168 copies.update(cps) | 168 copies.update(cps) |
169 | 169 |
170 self.lastrev = rev | 170 self.lastrev = rev |
171 return util.sort(set(changes)), copies | 171 return sorted(set(changes)), copies |
172 | 172 |
173 def getcommit(self, rev): | 173 def getcommit(self, rev): |
174 changes = self.changes[rev] | 174 changes = self.changes[rev] |
175 return commit(author = changes.author, date = changes.date, | 175 return commit(author = changes.author, date = changes.date, |
176 desc = changes.summary, parents = self.parents[rev], rev=rev) | 176 desc = changes.summary, parents = self.parents[rev], rev=rev) |