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

login
register
mail settings
Submitter Augie Fackler
Date Feb. 4, 2015, 6:15 p.m.
Message ID <b3e1bbb22c67b519680f.1423073713@arthedain.pit.corp.google.com>
Download mbox | patch
Permalink /patch/7661/
State Superseded
Commit fe195d41f7d2a9cb5e2c6890a6a233f866e36275
Headers show

Comments

Augie Fackler - Feb. 4, 2015, 6:15 p.m.
# HG changeset patch
# User Augie Fackler <augie@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.

Patch

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'