tests/test-alias.t
changeset 50987 727428c7e1fc
parent 49770 f0e9dda408b3
equal deleted inserted replaced
50983:8343947af6a7 50987:727428c7e1fc
    66   $ hg myinit alias
    66   $ hg myinit alias
    67 
    67 
    68 help
    68 help
    69 
    69 
    70   $ hg help -c | grep myinit
    70   $ hg help -c | grep myinit
    71    myinit       This is my documented alias for init.
    71    myinit        This is my documented alias for init.
    72   $ hg help -c | grep mycommit
    72   $ hg help -c | grep mycommit
    73    mycommit     This is my alias with only doc.
    73    mycommit      This is my alias with only doc.
    74   $ hg help -c | grep cleanstatus
    74   $ hg help -c | grep cleanstatus
    75   [1]
    75   [1]
    76   $ hg help -c | grep lognull
    76   $ hg help -c | grep lognull
    77    lognull      Logs the null rev
    77    lognull       Logs the null rev
    78   $ hg help -c | grep dln
    78   $ hg help -c | grep dln
    79   [1]
    79   [1]
    80   $ hg help -c | grep recursivedoc
    80   $ hg help -c | grep recursivedoc
    81    recursivedoc Logs the null rev in debug mode
    81    recursivedoc  Logs the null rev in debug mode
    82   $ hg help myinit
    82   $ hg help myinit
    83   hg myinit [OPTIONS] [BLA] [BLE]
    83   hg myinit [OPTIONS] [BLA] [BLE]
    84   
    84   
    85   alias for: hg init
    85   alias for: hg init
    86   
    86   
   601   this is rebate --foo-bar
   601   this is rebate --foo-bar
   602 
   602 
   603 help for a shell alias
   603 help for a shell alias
   604 
   604 
   605   $ hg help -c | grep rebate
   605   $ hg help -c | grep rebate
   606    rebate       This is my alias which just prints something.
   606    rebate        This is my alias which just prints something.
   607   $ hg help rebate
   607   $ hg help rebate
   608   hg rebate [MYARGS]
   608   hg rebate [MYARGS]
   609   
   609   
   610   shell alias for: echo this is %HG_ARGS% (windows !)
   610   shell alias for: echo this is %HG_ARGS% (windows !)
   611   shell alias for: echo this is $HG_ARGS (no-windows !)
   611   shell alias for: echo this is $HG_ARGS (no-windows !)