diff tests/test-revset.t @ 40931:e54bfde922f2

revset: move subscript relation functions to its own dict This will help adding more relation functions in extensions. We skip short names (that consist of one letter) while raising UnknownIdentifier because such names cannot be suggested anyway: the similarity cutoff in dispatch._getsimilar() is currently 0.6.
author Anton Shestakov <av6@dwimlabs.net>
date Thu, 13 Dec 2018 17:18:57 +0800
parents 4aa04d009167
children 4c6fdc7e2e7d
line wrap: on
line diff
--- a/tests/test-revset.t	Thu Dec 13 00:18:47 2018 -0500
+++ b/tests/test-revset.t	Thu Dec 13 17:18:57 2018 +0800
@@ -649,6 +649,17 @@
   hg: parse error: relation subscript must be an integer
   [255]
 
+suggested relations
+
+  $ hg debugrevspec '.#generafions[0]'
+  hg: parse error: unknown identifier: generafions
+  (did you mean generations?)
+  [255]
+
+  $ hg debugrevspec '.#f[0]'
+  hg: parse error: unknown identifier: f
+  [255]
+
 parsed tree at stages:
 
   $ hg debugrevspec -p all '()'