Mercurial > public > mercurial-scm > hg-stable
diff mercurial/hgweb/webutil.py @ 6750:fb42030d79d6
add __len__ and __iter__ methods to repo and revlog
author | Matt Mackall <mpm@selenic.com> |
---|---|
date | Thu, 26 Jun 2008 14:35:50 -0500 |
parents | f6c00b17387c |
children | f933076a19fc |
line wrap: on
line diff
--- a/mercurial/hgweb/webutil.py Thu Jun 26 14:35:50 2008 -0500 +++ b/mercurial/hgweb/webutil.py Thu Jun 26 14:35:50 2008 -0500 @@ -112,12 +112,11 @@ return util.canonpath(repo.root, '', path) def changectx(repo, req): + changeid = "tip" if 'node' in req.form: changeid = req.form['node'][0] elif 'manifest' in req.form: changeid = req.form['manifest'][0] - else: - changeid = repo.changelog.count() - 1 try: ctx = repo[changeid]