changeset 7379:ef22cb8896d6

graphlog: fix python2.3 incompatibility (used genexp, sorted())
author Dirkjan Ochtman <dirkjan@ochtman.nl>
date Sat, 15 Nov 2008 12:27:40 +0100
parents 8dde275680d8
children 59f8f6f30630
files hgext/graphlog.py
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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