Mercurial > hg
comparison hgext/graphlog.py @ 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 | ccec5ae82282 |
children | b501c7f3c2ad |
comparison
equal
deleted
inserted
replaced
7378:8dde275680d8 | 7379:ef22cb8896d6 |
---|---|
22 """ | 22 """ |
23 assert start >= stop | 23 assert start >= stop |
24 cur = start | 24 cur = start |
25 while cur >= stop: | 25 while cur >= stop: |
26 ctx = repo[cur] | 26 ctx = repo[cur] |
27 parents = sorted(p.rev() for p in ctx.parents() if p.rev() != nullrev) | 27 parents = [p.rev() for p in ctx.parents() if p.rev() != nullrev] |
28 parents.sort() | |
28 yield (ctx, parents) | 29 yield (ctx, parents) |
29 cur -= 1 | 30 cur -= 1 |
30 | 31 |
31 def filerevs(repo, path, start, stop): | 32 def filerevs(repo, path, start, stop): |
32 """file cset DAG generator yielding (rev, node, [parents]) tuples | 33 """file cset DAG generator yielding (rev, node, [parents]) tuples |