Patchwork [4,of,6,sethelp,v2] test-revset: add tests for missing function output

login
register
mail settings
Submitter Augie Fackler
Date March 6, 2015, 11:01 p.m.
Message ID <b92c724cedb2f5197359.1425682905@arthedain.pit.corp.google.com>
Download mbox | patch
Permalink /patch/7916/
State Accepted
Commit fe195d41f7d2a9cb5e2c6890a6a233f866e36275
Headers show

Comments

Augie Fackler - March 6, 2015, 11:01 p.m.
# HG changeset patch
# User Augie Fackler <augie@google.com>
# Date 1422305566 18000
#      Mon Jan 26 15:52:46 2015 -0500
# Node ID b92c724cedb2f5197359993df428e4df3b4817e8
# Parent  6f82cc057e0175b41fdb3669c471132c4c58b077
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
@@ -888,6 +888,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'