tests/test-alias.t
changeset 22164 efd65e51bc0b
parent 22163 01ef4347e4ab
child 22378 c828b61e0635
equal deleted inserted replaced
22163:01ef4347e4ab 22164:efd65e51bc0b
    60 
    60 
    61 
    61 
    62 unknown
    62 unknown
    63 
    63 
    64   $ hg unknown
    64   $ hg unknown
    65   alias 'unknown' resolves to unknown command 'bargle'
    65   abort: alias 'unknown' resolves to unknown command 'bargle'
    66   [255]
    66   [255]
    67   $ hg help unknown
    67   $ hg help unknown
    68   alias 'unknown' resolves to unknown command 'bargle'
    68   alias 'unknown' resolves to unknown command 'bargle'
    69 
    69 
    70 
    70 
    71 ambiguous
    71 ambiguous
    72 
    72 
    73   $ hg ambiguous
    73   $ hg ambiguous
    74   alias 'ambiguous' resolves to ambiguous command 's'
    74   abort: alias 'ambiguous' resolves to ambiguous command 's'
    75   [255]
    75   [255]
    76   $ hg help ambiguous
    76   $ hg help ambiguous
    77   alias 'ambiguous' resolves to ambiguous command 's'
    77   alias 'ambiguous' resolves to ambiguous command 's'
    78 
    78 
    79 
    79 
    80 recursive
    80 recursive
    81 
    81 
    82   $ hg recursive
    82   $ hg recursive
    83   alias 'recursive' resolves to unknown command 'recursive'
    83   abort: alias 'recursive' resolves to unknown command 'recursive'
    84   [255]
    84   [255]
    85   $ hg help recursive
    85   $ hg help recursive
    86   alias 'recursive' resolves to unknown command 'recursive'
    86   alias 'recursive' resolves to unknown command 'recursive'
    87 
    87 
    88 
    88 
    89 disabled
    89 disabled
    90 
    90 
    91   $ hg disabled
    91   $ hg disabled
    92   alias 'disabled' resolves to unknown command 'email'
    92   abort: alias 'disabled' resolves to unknown command 'email'
    93   'email' is provided by 'patchbomb' extension
    93   ('email' is provided by 'patchbomb' extension)
    94   [255]
    94   [255]
    95   $ hg help disabled
    95   $ hg help disabled
    96   alias 'disabled' resolves to unknown command 'email'
    96   alias 'disabled' resolves to unknown command 'email'
    97   
    97   
    98   'email' is provided by the following extension:
    98   'email' is provided by the following extension:
   103 
   103 
   104 
   104 
   105 no definition
   105 no definition
   106 
   106 
   107   $ hg nodef
   107   $ hg nodef
   108   no definition for alias 'nodefinition'
   108   abort: no definition for alias 'nodefinition'
   109   [255]
   109   [255]
   110   $ hg help nodef
   110   $ hg help nodef
   111   no definition for alias 'nodefinition'
   111   no definition for alias 'nodefinition'
   112 
   112 
   113 
   113 
   114 no closing quotation
   114 no closing quotation
   115 
   115 
   116   $ hg noclosing
   116   $ hg noclosing
   117   error in definition for alias 'noclosingquotation': No closing quotation
   117   abort: error in definition for alias 'noclosingquotation': No closing quotation
   118   [255]
   118   [255]
   119   $ hg help noclosing
   119   $ hg help noclosing
   120   error in definition for alias 'noclosingquotation': No closing quotation
   120   error in definition for alias 'noclosingquotation': No closing quotation
   121 
   121 
   122 
   122 
   123 invalid options
   123 invalid options
   124 
   124 
   125   $ hg no--cwd
   125   $ hg no--cwd
   126   error in definition for alias 'no--cwd': --cwd may only be given on the command line
   126   abort: error in definition for alias 'no--cwd': --cwd may only be given on the command line
   127   [255]
   127   [255]
   128   $ hg help no--cwd
   128   $ hg help no--cwd
   129   error in definition for alias 'no--cwd': --cwd may only be given on the
   129   error in definition for alias 'no--cwd': --cwd may only be given on the
   130   command line
   130   command line
   131   $ hg no-R
   131   $ hg no-R
   132   error in definition for alias 'no-R': -R may only be given on the command line
   132   abort: error in definition for alias 'no-R': -R may only be given on the command line
   133   [255]
   133   [255]
   134   $ hg help no-R
   134   $ hg help no-R
   135   error in definition for alias 'no-R': -R may only be given on the command line
   135   error in definition for alias 'no-R': -R may only be given on the command line
   136   $ hg no--repo
   136   $ hg no--repo
   137   error in definition for alias 'no--repo': --repo may only be given on the command line
   137   abort: error in definition for alias 'no--repo': --repo may only be given on the command line
   138   [255]
   138   [255]
   139   $ hg help no--repo
   139   $ hg help no--repo
   140   error in definition for alias 'no--repo': --repo may only be given on the
   140   error in definition for alias 'no--repo': --repo may only be given on the
   141   command line
   141   command line
   142   $ hg no--repository
   142   $ hg no--repository
   143   error in definition for alias 'no--repository': --repository may only be given on the command line
   143   abort: error in definition for alias 'no--repository': --repository may only be given on the command line
   144   [255]
   144   [255]
   145   $ hg help no--repository
   145   $ hg help no--repository
   146   error in definition for alias 'no--repository': --repository may only be given
   146   error in definition for alias 'no--repository': --repository may only be given
   147   on the command line
   147   on the command line
   148   $ hg no--config
   148   $ hg no--config
   149   error in definition for alias 'no--config': --config may only be given on the command line
   149   abort: error in definition for alias 'no--config': --config may only be given on the command line
   150   [255]
   150   [255]
   151 
   151 
   152 optional repository
   152 optional repository
   153 
   153 
   154 #if no-outer-repo
   154 #if no-outer-repo