Patchwork D3155: hgweb: use revsymbol() to determine if query is a revision

login
register
mail settings
Submitter phabricator
Date April 6, 2018, 12:41 p.m.
Message ID <7b146ad5e662c2476e0bee232cd32e13@localhost.localdomain>
Download mbox | patch
Permalink /patch/30433/
State Not Applicable
Headers show

Comments

phabricator - April 6, 2018, 12:41 p.m.
This revision was automatically updated to reflect the committed changes.
Closed by commit rHG83d537162894: hgweb: use revsymbol() to determine if query is a revision (authored by martinvonz, committed by ).

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D3155?vs=7770&id=7777

REVISION DETAIL
  https://phab.mercurial-scm.org/D3155

AFFECTED FILES
  mercurial/hgweb/webcommands.py

CHANGE DETAILS




To: martinvonz, #hg-reviewers
Cc: mercurial-devel

Patch

diff --git a/mercurial/hgweb/webcommands.py b/mercurial/hgweb/webcommands.py
--- a/mercurial/hgweb/webcommands.py
+++ b/mercurial/hgweb/webcommands.py
@@ -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