Mercurial > hg
comparison tests/test-alias.t @ 40414:444861dc1e55
help: displaying documented aliases by default
This makes aliases be displayed in "hg help" when they have a :doc config
entry, and also allows them to be assigned to a category with :category.
Differential Revision: https://phab.mercurial-scm.org/D5087
author | rdamazio@google.com |
---|---|
date | Thu, 18 Oct 2018 19:57:05 -0700 |
parents | 0d703063d0c8 |
children | 557d3509da55 |
comparison
equal
deleted
inserted
replaced
40413:1ddd202c47d9 | 40414:444861dc1e55 |
---|---|
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 cleanstatus show changed files in the working directory | 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 dln Logs the null rev | 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 |
600 this is rebate --foo-bar | 600 this is rebate --foo-bar |
601 | 601 |
602 help for a shell alias | 602 help for a shell alias |
603 | 603 |
604 $ hg help -c | grep rebate | 604 $ hg help -c | grep rebate |
605 rebate This is my alias which just prints something. | 605 rebate This is my alias which just prints something. |
606 $ hg help rebate | 606 $ hg help rebate |
607 hg rebate [MYARGS] | 607 hg rebate [MYARGS] |
608 | 608 |
609 shell alias for: echo this is %HG_ARGS% (windows !) | 609 shell alias for: echo this is %HG_ARGS% (windows !) |
610 shell alias for: echo this is $HG_ARGS (no-windows !) | 610 shell alias for: echo this is $HG_ARGS (no-windows !) |