mercurial/hgweb/webcommands.py
changeset 39102 08b2ae9fc030
parent 38783 e7aa113b14f7
parent 38931 5caee9f923ae
child 39419 6268fed317d0
--- a/mercurial/hgweb/webcommands.py	Wed Aug 15 10:57:47 2018 +0900
+++ b/mercurial/hgweb/webcommands.py	Wed Aug 15 17:06:12 2018 -0400
@@ -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