Mercurial > hg-stable
changeset 3424:9b1c126b74cd
Fix test-oldcgi after navbar update
author | Brendan Cully <brendan@kublai.com> |
---|---|
date | Mon, 16 Oct 2006 11:36:57 -0700 |
parents | a2179e78d18b |
children | ec6f400cff4d |
files | mercurial/hgweb/hgweb_mod.py |
diffstat | 1 files changed, 7 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/hgweb/hgweb_mod.py Mon Oct 16 11:18:06 2006 -0700 +++ b/mercurial/hgweb/hgweb_mod.py Mon Oct 16 11:36:57 2006 -0700 @@ -54,12 +54,15 @@ if pos - f >= 0: l.insert(0, ("-%d" % f, hex(nodefunc(pos - f).node()))) - yield {"label": "(0)", "node": hex(nodefunc(0).node())} + try: + yield {"label": "(0)", "node": hex(nodefunc('0').node())} - for label, node in l: - yield {"label": label, "node": node} + for label, node in l: + yield {"label": label, "node": node} - yield {"label": "tip", "node": hex(nodefunc('-1').node())} + yield {"label": "tip", "node": hex(nodefunc('-1').node())} + except hg.RepoError: + pass return nav