alias: add test for alias command provided by disabled extension
authorYuya Nishihara <yuya@tcha.org>
Sat, 17 May 2014 20:47:31 +0900
changeset 22159 db7921812f56
parent 22158 bc2132dfc0a4
child 22160 645457f73aa6
alias: add test for alias command provided by disabled extension This should complete cases where "badalias" is set.
tests/test-alias.t
--- a/tests/test-alias.t	Wed Aug 13 23:21:52 2014 -0700
+++ b/tests/test-alias.t	Sat May 17 20:47:31 2014 +0900
@@ -10,6 +10,7 @@
   > unknown = bargle
   > ambiguous = s
   > recursive = recursive
+  > disabled = email
   > nodefinition =
   > noclosingquotation = '
   > no--cwd = status --cwd elsewhere
@@ -85,6 +86,25 @@
   alias 'recursive' resolves to unknown command 'recursive'
 
 
+disabled
+
+  $ hg disabled
+  alias 'disabled' resolves to unknown command 'email'
+  'email' is provided by the following extension:
+  
+      patchbomb     command to send changesets as (a series of) patch emails
+  
+  (use "hg help extensions" for information on enabling extensions)
+  [255]
+  $ hg help disabled
+  alias 'disabled' resolves to unknown command 'email'
+  'email' is provided by the following extension:
+  
+      patchbomb     command to send changesets as (a series of) patch emails
+  
+  (use "hg help extensions" for information on enabling extensions)
+
+
 no definition
 
   $ hg nodef