D3155: hgweb: use revsymbol() to determine if query is a revision
martinvonz (Martin von Zweigbergk)
phabricator at mercurial-scm.org
Fri Apr 6 08:41:53 EDT 2018
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
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
To: martinvonz, #hg-reviewers
Cc: mercurial-devel
More information about the Mercurial-devel
mailing list