# HG changeset patch # User mpm@selenic.com # Date 1118131651 28800 # Node ID 5a80ed2158c8e0d0a3a601320f6cccab2bd8f714 # Parent 24e9e140485fb91c32e06c0bfa3daf7b4abc3b5d Reverse order of hg log and hg history lists -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Reverse order of hg log and hg history lists Suggested by Arun Sharma manifest hash: 5f663a03e7ace601383c7291a17f83c9aeeccdda -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.0 (GNU/Linux) iD8DBQFCpVXDywK+sNU5EO8RApeOAJsFXG0qeO+yidIwyPrBHSmDMaKfdwCeMAWl uClUZxGNburRXmNLLAPHk9k= =1ytE -----END PGP SIGNATURE----- diff -r 24e9e140485f -r 5a80ed2158c8 mercurial/commands.py --- a/mercurial/commands.py Tue Jun 07 00:04:43 2005 -0800 +++ b/mercurial/commands.py Tue Jun 07 00:07:31 2005 -0800 @@ -256,7 +256,7 @@ def history(ui, repo): """show the changelog history""" - for i in range(repo.changelog.count()): + for i in range(repo.changelog.count() - 1, -1, -1): n = repo.changelog.node(i) changes = repo.changelog.read(n) (p1, p2) = repo.changelog.parents(n) @@ -283,7 +283,7 @@ f = relpath(repo, [f])[0] r = repo.file(f) - for i in range(r.count()): + for i in range(r.count() - 1, -1, -1): n = r.node(i) (p1, p2) = r.parents(n) (h, h1, h2) = map(hg.hex, (n, p1, p2))