tests/test-alias.t
branchstable
changeset 20328 03d345da0579
parent 20117 aa9385f983fa
child 21556 5e13507a3b4e
equal deleted inserted replaced
20327:46c2331fc750 20328:03d345da0579
   322   $ hg escaped3 HGFOO
   322   $ hg escaped3 HGFOO
   323   HGFOO is BAR
   323   HGFOO is BAR
   324   $ hg escaped4 test
   324   $ hg escaped4 test
   325   $0 $@
   325   $0 $@
   326 
   326 
       
   327 abbreviated name, which matches against both shell alias and the
       
   328 command provided extension, should be aborted.
       
   329 
       
   330   $ cat >> .hg/hgrc <<EOF
       
   331   > [extensions]
       
   332   > hgext.rebase =
       
   333   > [alias]
       
   334   > rebate = !echo this is rebate
       
   335   > EOF
       
   336   $ hg reba
       
   337   hg: command 'reba' is ambiguous:
       
   338       rebase rebate
       
   339   [255]
       
   340   $ hg rebat
       
   341   this is rebate
   327 
   342 
   328 invalid arguments
   343 invalid arguments
   329 
   344 
   330   $ hg rt foo
   345   $ hg rt foo
   331   hg rt: invalid arguments
   346   hg rt: invalid arguments