graphlog: fix python2.3 incompatibility (used genexp, sorted())
authorDirkjan Ochtman <dirkjan@ochtman.nl>
Sat, 15 Nov 2008 12:27:40 +0100
changeset 7379 ef22cb8896d6
parent 7378 8dde275680d8
child 7380 59f8f6f30630
graphlog: fix python2.3 incompatibility (used genexp, sorted())
hgext/graphlog.py
--- a/hgext/graphlog.py	Fri Nov 14 22:29:03 2008 +0100
+++ b/hgext/graphlog.py	Sat Nov 15 12:27:40 2008 +0100
@@ -24,7 +24,8 @@
     cur = start
     while cur >= stop:
         ctx = repo[cur]
-        parents = sorted(p.rev() for p in ctx.parents() if p.rev() != nullrev)
+        parents = [p.rev() for p in ctx.parents() if p.rev() != nullrev]
+        parents.sort()
         yield (ctx, parents)
         cur -= 1