Mercurial > hg
comparison tests/test-help.t @ 27614:1d7e824ad093
help: include section heading if section depth changes
This makes it easier to distinguish between:
"format"
--------
"usestore"
...
Enabled by default.
and
"progress.format"
Format of the progress bar.
author | timeless <timeless@mozdev.org> |
---|---|
date | Fri, 01 Jan 2016 16:59:13 +0000 |
parents | 8f8f3b13252d |
children | b3376fba4ab9 |
comparison
equal
deleted
inserted
replaced
27613:dffd2ed9a7c4 | 27614:1d7e824ad093 |
---|---|
1160 ("profiling.type"[break]"ls"[break]"stat"[break]) | 1160 ("profiling.type"[break]"ls"[break]"stat"[break]) |
1161 | 1161 |
1162 $ hg help config.type | egrep '^$'|wc -l | 1162 $ hg help config.type | egrep '^$'|wc -l |
1163 \s*3 (re) | 1163 \s*3 (re) |
1164 | 1164 |
1165 Separate sections from subsections | |
1166 | |
1167 $ hg help config.format | egrep '^ ("|-)|^\s*$' | uniq | |
1168 "format" | |
1169 -------- | |
1170 | |
1171 "usegeneraldelta" | |
1172 | |
1173 "dotencode" | |
1174 | |
1175 "usefncache" | |
1176 | |
1177 "usestore" | |
1178 | |
1179 "profiling" | |
1180 ----------- | |
1181 | |
1182 "format" | |
1183 | |
1184 "progress" | |
1185 ---------- | |
1186 | |
1187 "format" | |
1188 | |
1189 | |
1165 Last item in help config.*: | 1190 Last item in help config.*: |
1166 | 1191 |
1167 $ hg help config.`hg help config|grep '^ "'| \ | 1192 $ hg help config.`hg help config|grep '^ "'| \ |
1168 > tail -1|sed 's![ "]*!!g'`| \ | 1193 > tail -1|sed 's![ "]*!!g'`| \ |
1169 > grep "hg help -c config" > /dev/null | 1194 > grep "hg help -c config" > /dev/null |