Patchwork [1,of,6] alias: add test for alias command provided by disabled extension

login
register
mail settings
Submitter Yuya Nishihara
Date Aug. 14, 2014, 2:31 a.m.
Message ID <98f5cd65e88e2fbd1708.1407983483@mimosa>
Download mbox | patch
Permalink /patch/5388/
State Accepted
Headers show

Comments

Yuya Nishihara - Aug. 14, 2014, 2:31 a.m.
# HG changeset patch
# User Yuya Nishihara <yuya@tcha.org>
# Date 1400327251 -32400
#      Sat May 17 20:47:31 2014 +0900
# Node ID 98f5cd65e88e2fbd1708c9ea74e0f003a2e5ef1a
# Parent  44d6818b9cd9db2c209a09dd162ef2fd745271e8
alias: add test for alias command provided by disabled extension

This should complete cases where "badalias" is set.

Patch

diff --git a/tests/test-alias.t b/tests/test-alias.t
--- a/tests/test-alias.t
+++ b/tests/test-alias.t
@@ -10,6 +10,7 @@ 
   > unknown = bargle
   > ambiguous = s
   > recursive = recursive
+  > disabled = email
   > nodefinition =
   > noclosingquotation = '
   > no--cwd = status --cwd elsewhere
@@ -84,6 +85,25 @@  recursive
   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