Mercurial > hg-stable
diff 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 |
line wrap: on
line diff
--- a/mercurial/commands.py Sat Feb 06 12:47:24 2010 +0100 +++ b/mercurial/commands.py Sat Feb 06 12:47:33 2010 +0100 @@ -1447,9 +1447,10 @@ if not heads: return 1 + heads = sorted((repo[h] for h in heads), key=lambda x: -x.rev()) displayer = cmdutil.show_changeset(ui, repo, opts) - for n in heads: - displayer.show(repo[n]) + for ctx in heads: + displayer.show(ctx) displayer.close() def help_(ui, name=None, with_version=False):