comparison mercurial/commands.py @ 10331:ec5240a22f4a

commands: always order heads recent to oldest
author Dirkjan Ochtman <dirkjan@ochtman.nl>
date Sat, 06 Feb 2010 12:47:33 +0100
parents d8c0e6c43791
children 3d75c691b77d 23e608f42f2c
comparison
equal deleted inserted replaced
10330:d8c0e6c43791 10331:ec5240a22f4a
1445 heads.extend(bheads) 1445 heads.extend(bheads)
1446 1446
1447 if not heads: 1447 if not heads:
1448 return 1 1448 return 1
1449 1449
1450 heads = sorted((repo[h] for h in heads), key=lambda x: -x.rev())
1450 displayer = cmdutil.show_changeset(ui, repo, opts) 1451 displayer = cmdutil.show_changeset(ui, repo, opts)
1451 for n in heads: 1452 for ctx in heads:
1452 displayer.show(repo[n]) 1453 displayer.show(ctx)
1453 displayer.close() 1454 displayer.close()
1454 1455
1455 def help_(ui, name=None, with_version=False): 1456 def help_(ui, name=None, with_version=False):
1456 """show help for a given topic or a help overview 1457 """show help for a given topic or a help overview
1457 1458