diff tests/test-annotate.t @ 30754:26209cb7184e

revset: parse variable-length arguments of followlines() by getargsdict()
author Yuya Nishihara <yuya@tcha.org>
date Mon, 09 Jan 2017 16:02:56 +0900
parents 42c75b4fa46a
children cd23879cbac7
line wrap: on
line diff
--- a/tests/test-annotate.t	Mon Jan 09 15:25:52 2017 +0900
+++ b/tests/test-annotate.t	Mon Jan 09 16:02:56 2017 +0900
@@ -582,6 +582,15 @@
   $ hg up 23 --quiet
 
 check error cases
+  $ hg log -r 'followlines()'
+  hg: parse error: followlines takes at least 1 positional arguments
+  [255]
+  $ hg log -r 'followlines(baz)'
+  hg: parse error: followlines takes at least three arguments
+  [255]
+  $ hg log -r 'followlines(baz, 1)'
+  hg: parse error: followlines takes at least three arguments
+  [255]
   $ hg log -r 'followlines(baz, 1, 2, rev=desc("b"))'
   hg: parse error: followlines expects exactly one revision
   [255]