[PATCH 8 of 9 sethelp] test-revset: add tests for missing function output

Augie Fackler raf at durin42.com
Wed Feb 4 12:15:13 CST 2015


# HG changeset patch
# User Augie Fackler <augie at google.com>
# Date 1422305566 18000
#      Mon Jan 26 15:52:46 2015 -0500
# Node ID b3e1bbb22c67b519680f1d75c2c1e0399a0ab1bb
# Parent  8251917a24a6aba9d9f58a7a765d7dff9470dfaf
test-revset: add tests for missing function output

An upcoming change will slightly alter behavior here. Adding the test
now so the output change stands out in the later changeset.

diff --git a/tests/test-revset.t b/tests/test-revset.t
--- a/tests/test-revset.t
+++ b/tests/test-revset.t
@@ -861,6 +861,20 @@ parentrevspec
   hg: parse error: ^ expects a number 0, 1, or 2
   [255]
 
+Bogus function gets suggestions
+  $ log 'add()'
+  hg: parse error: not a function: add
+  [255]
+  $ log 'added()'
+  hg: parse error: not a function: added
+  [255]
+  $ log 'remo()'
+  hg: parse error: not a function: remo
+  [255]
+  $ log 'babar()'
+  hg: parse error: not a function: babar
+  [255]
+
 multiple revspecs
 
   $ hg log -r 'tip~1:tip' -r 'tip~2:tip~1' --template '{rev}\n'


More information about the Mercurial-devel mailing list