diff mercurial/commands.py @ 13665:e798e430c5e5

revset: report a parse error if a revset is not parsed completely (issue2654)
author Bernhard Leiner <bleiner@gmail.com>
date Wed, 16 Mar 2011 23:09:14 +0100
parents d16c99f16f00
children 4f5ed2bd1724
line wrap: on
line diff
--- a/mercurial/commands.py	Wed Mar 16 18:48:59 2011 +0100
+++ b/mercurial/commands.py	Wed Mar 16 23:09:14 2011 +0100
@@ -1237,7 +1237,7 @@
 def debugrevspec(ui, repo, expr):
     '''parse and apply a revision specification'''
     if ui.verbose:
-        tree = revset.parse(expr)
+        tree = revset.parse(expr)[0]
         ui.note(tree, "\n")
     func = revset.match(expr)
     for c in func(repo, range(len(repo))):