mercurial/hgweb/webcommands.py
branchstable
changeset 38931 5caee9f923ae
parent 38482 5faaa31a6082
child 39102 08b2ae9fc030
child 39416 ede3bf31fe63
--- a/mercurial/hgweb/webcommands.py	Fri Aug 03 15:09:19 2018 -0400
+++ b/mercurial/hgweb/webcommands.py	Thu Aug 09 13:04:52 2018 +0800
@@ -276,9 +276,9 @@
         if not funcsused.issubset(revset.safesymbols):
             return MODE_KEYWORD, query
 
-        mfunc = revset.match(web.repo.ui, revdef,
-                             lookup=revset.lookupfn(web.repo))
         try:
+            mfunc = revset.match(web.repo.ui, revdef,
+                                 lookup=revset.lookupfn(web.repo))
             revs = mfunc(web.repo)
             return MODE_REVSET, revs
             # ParseError: wrongly placed tokens, wrongs arguments, etc