diff tests/test-revset.t @ 24221:4e240d6ab898

dispatch: offer near-edit-distance suggestions for {file,rev}set functions Before this patch, when I have a brain fart and type `hg log -r 'add(foo)'`, hg exits and just says add isn't a function, leading me to the help page for revset to figure out how to spell the function. With this patch, it suggests 'adds' as a function I might have meant.
author Augie Fackler <augie@google.com>
date Mon, 26 Jan 2015 15:43:13 -0500
parents fe195d41f7d2
children 02d7b5cd373b
line wrap: on
line diff
--- a/tests/test-revset.t	Mon Jan 26 15:52:46 2015 -0500
+++ b/tests/test-revset.t	Mon Jan 26 15:43:13 2015 -0500
@@ -891,12 +891,15 @@
 Bogus function gets suggestions
   $ log 'add()'
   hg: parse error: not a function: add
+  (did you mean 'adds'?)
   [255]
   $ log 'added()'
   hg: parse error: not a function: added
+  (did you mean 'adds'?)
   [255]
   $ log 'remo()'
   hg: parse error: not a function: remo
+  (did you mean one of remote, removes?)
   [255]
   $ log 'babar()'
   hg: parse error: not a function: babar