Mercurial > hg > mercurial-crew-with-dirclash
changeset 3671:86d3f966201d
Use nullrev+count instead of count-1 in a newly introduced expression.
Before that repo.changelog.tip() was used, but this yields a node.
Of course many more places should be changed like this, this was just done
as an example.
author | Thomas Arendsen Hein <thomas@intevation.de> |
---|---|
date | Thu, 16 Nov 2006 08:51:22 +0100 |
parents | b4903debbe3b |
children | e8730b5b8a32 |
files | mercurial/commands.py |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/commands.py +++ b/mercurial/commands.py @@ -2195,7 +2195,7 @@ def tip(ui, repo, **opts): Show the tip revision. """ - cmdutil.show_changeset(ui, repo, opts).show(repo.changelog.count()-1) + cmdutil.show_changeset(ui, repo, opts).show(nullrev+repo.changelog.count()) def unbundle(ui, repo, fname, **opts): """apply a changegroup file