diff mercurial/hgweb/webcommands.py @ 25251:235f6490550c

revset: move validation of incomplete parsing to parse() function revset.parse() should be responsible for all parsing errors. Perhaps it wasn't because 'revset.parse' was not a real function when the validation code was added at ffcb7e4d719f.
author Yuya Nishihara <yuya@tcha.org>
date Sun, 26 Apr 2015 19:42:47 +0900
parents 3f0744eeaeaf
children 85fb416f2fa7
line wrap: on
line diff
--- a/mercurial/hgweb/webcommands.py	Fri May 22 14:39:34 2015 -0700
+++ b/mercurial/hgweb/webcommands.py	Sun Apr 26 19:42:47 2015 +0900
@@ -223,7 +223,7 @@
 
         revdef = 'reverse(%s)' % query
         try:
-            tree, pos = revset.parse(revdef)
+            tree = revset.parse(revdef)
         except ParseError:
             # can't parse to a revset tree
             return MODE_KEYWORD, query