diff mercurial/commands.py @ 14496:ffcb7e4d719f stable

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 ab687820c4cc
children 4f695345979c
line wrap: on
line diff
--- a/mercurial/commands.py	Tue May 31 15:25:43 2011 -0500
+++ b/mercurial/commands.py	Wed Mar 16 23:09:14 2011 +0100
@@ -1214,7 +1214,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))):