# HG changeset patch # User Martin von Zweigbergk # Date 1522989179 25200 # Node ID 83d537162894716ddee8497e42dc8a8a21f75ac6 # Parent 167b22a906f3889a1f2f26a65303bd83eff9289a hgweb: use revsymbol() to determine if query is a revision repo.__getitem__ is about to get dumber. Differential Revision: https://phab.mercurial-scm.org/D3155 diff -r 167b22a906f3 -r 83d537162894 mercurial/hgweb/webcommands.py --- a/mercurial/hgweb/webcommands.py Thu Apr 05 14:03:33 2018 -0700 +++ b/mercurial/hgweb/webcommands.py Thu Apr 05 21:32:59 2018 -0700 @@ -248,7 +248,7 @@ def getsearchmode(query): try: - ctx = web.repo[query] + ctx = scmutil.revsymbol(web.repo, query) except (error.RepoError, error.LookupError): # query is not an exact revision pointer, need to # decide if it's a revset expression or keywords