Mercurial > hg
changeset 270:5a80ed2158c8
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-----
author | mpm@selenic.com |
---|---|
date | Tue, 07 Jun 2005 00:07:31 -0800 |
parents | 24e9e140485f |
children | 35acefbf0ae6 |
files | mercurial/commands.py |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- 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))