Mercurial > hg
comparison mercurial/configitems.py @ 37134:6890b7e991a4
help: supporting both help and doc for aliases
This allows an alias to be definted like:
[alias]
lj = log -Tjson
lj:help = [-r REV]
lj:doc = Shows the revision log in JSON format.
Differential Revision: https://phab.mercurial-scm.org/D2678
author | Rodrigo Damazio <rdamazio@google.com> |
---|---|
date | Sun, 04 Mar 2018 17:11:33 -0500 |
parents | 8c3c47362934 |
children | 2d965bfeb8f6 |
comparison
equal
deleted
inserted
replaced
37133:a2a6755a3def | 37134:6890b7e991a4 |
---|---|
112 return f | 112 return f |
113 | 113 |
114 coreconfigitem = getitemregister(coreitems) | 114 coreconfigitem = getitemregister(coreitems) |
115 | 115 |
116 coreconfigitem('alias', '.*', | 116 coreconfigitem('alias', '.*', |
117 default=None, | 117 default=dynamicdefault, |
118 generic=True, | 118 generic=True, |
119 ) | 119 ) |
120 coreconfigitem('annotate', 'nodates', | 120 coreconfigitem('annotate', 'nodates', |
121 default=False, | 121 default=False, |
122 ) | 122 ) |