comparison hgext/convert/cvs.py @ 6762:f67d1468ac50

util: add sort helper
author Matt Mackall <mpm@selenic.com>
date Fri, 27 Jun 2008 18:28:45 -0500
parents 127e8c3466d1
children d8159dd15db3
comparison
equal deleted inserted replaced
6761:cb981fc955fb 6762:f67d1468ac50
335 def getmode(self, file, rev): 335 def getmode(self, file, rev):
336 return self.modecache[(file, rev)] 336 return self.modecache[(file, rev)]
337 337
338 def getchanges(self, rev): 338 def getchanges(self, rev):
339 self.modecache = {} 339 self.modecache = {}
340 files = self.files[rev] 340 return util.sort(self.files[rev].items()), {}
341 cl = files.items()
342 cl.sort()
343 return (cl, {})
344 341
345 def getcommit(self, rev): 342 def getcommit(self, rev):
346 return self.changeset[rev] 343 return self.changeset[rev]
347 344
348 def gettags(self): 345 def gettags(self):
349 return self.tags 346 return self.tags
350 347
351 def getchangedfiles(self, rev, i): 348 def getchangedfiles(self, rev, i):
352 files = self.files[rev].keys() 349 return util.sort(self.files[rev].keys())
353 files.sort()
354 return files
355