diff tests/test-revset.t @ 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 05fffd665170
children c315ffc13a25
line wrap: on
line diff
--- a/tests/test-revset.t	Tue May 31 15:25:43 2011 -0500
+++ b/tests/test-revset.t	Wed Mar 16 23:09:14 2011 +0100
@@ -356,3 +356,10 @@
   9
   $ log 'ancestors(8) and (heads(branch("-a-b-c-")) or heads(branch(é)))'
   4
+
+issue2654: report a parse error if the revset was not completely parsed
+
+  $ log '1 OR 2'
+  hg: parse error at 2: invalid token
+  [255]
+