--- a/hgext/convert/hg.py Fri Jun 27 14:53:30 2008 -0500
+++ b/hgext/convert/hg.py Fri Jun 27 18:28:45 2008 -0500
@@ -164,14 +164,11 @@
tagparent = nullid
try:
- old = parentctx.filectx(".hgtags").data()
- oldlines = old.splitlines(1)
- oldlines.sort()
+ oldlines = util.sort(parentctx['.hgtags'].data().splitlines(1))
except:
oldlines = []
- newlines = [("%s %s\n" % (tags[tag], tag)) for tag in tags.keys()]
- newlines.sort()
+ newlines = util.sort([("%s %s\n" % (tags[tag], tag)) for tag in tags])
if newlines == oldlines:
return None
@@ -238,8 +235,7 @@
else:
m, a, r = self.repo.status(ctx.parents()[0].node(), ctx.node())[:3]
changes = [(name, rev) for name in m + a + r]
- changes.sort()
- return (changes, self.getcopies(ctx, m + a))
+ return util.sort(changes), self.getcopies(ctx, m + a)
def getcopies(self, ctx, files):
copies = {}