Mercurial > hg
changeset 19436:f5abfa08fb09
hgweb: run search instead of showing wrong error for ambigious identifier
Before this when multiple changesets hashes in the repos started with the
search query string, error was given that the revision isn't found, and it
was misleading. Now a simple keyword search runs in this case.
author | Alexander Plavin <me@aplavin.ru> |
---|---|
date | Fri, 12 Jul 2013 01:58:48 +0400 |
parents | d3611374b50d |
children | 6857f554ae0e |
files | mercurial/hgweb/webcommands.py |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/hgweb/webcommands.py Wed Jul 17 17:34:47 2013 -0700 +++ b/mercurial/hgweb/webcommands.py Fri Jul 12 01:58:48 2013 +0400 @@ -196,7 +196,7 @@ hi = 'tip' try: ctx = web.repo[hi] - except error.RepoError: + except (error.RepoError, error.LookupError): return _search(web, req, tmpl) # XXX redirect to 404 page? def changelist(latestonly, **map):