Mercurial > hg
comparison tests/test-help.t @ 29979:40ffa8bff73a
tests: favor single quotes for wrapping hg help ...
author | timeless <timeless@mozdev.org> |
---|---|
date | Tue, 20 Sep 2016 23:49:20 +0000 |
parents | 7109d5ddeb0c |
children | e83f89d3b1f7 |
comparison
equal
deleted
inserted
replaced
29978:3d2ea1403c62 | 29979:40ffa8bff73a |
---|---|
1248 | 1248 |
1249 Last item in help config.*: | 1249 Last item in help config.*: |
1250 | 1250 |
1251 $ hg help config.`hg help config|grep '^ "'| \ | 1251 $ hg help config.`hg help config|grep '^ "'| \ |
1252 > tail -1|sed 's![ "]*!!g'`| \ | 1252 > tail -1|sed 's![ "]*!!g'`| \ |
1253 > grep "hg help -c config" > /dev/null | 1253 > grep 'hg help -c config' > /dev/null |
1254 [1] | 1254 [1] |
1255 | 1255 |
1256 note to use help -c for general hg help config: | 1256 note to use help -c for general hg help config: |
1257 | 1257 |
1258 $ hg help config |grep "hg help -c config" > /dev/null | 1258 $ hg help config |grep 'hg help -c config' > /dev/null |
1259 | 1259 |
1260 Test templating help | 1260 Test templating help |
1261 | 1261 |
1262 $ hg help templating | egrep '(desc|diffstat|firstline|nonempty) ' | 1262 $ hg help templating | egrep '(desc|diffstat|firstline|nonempty) ' |
1263 desc String. The text of the changeset description. | 1263 desc String. The text of the changeset description. |
1587 > Lower name should show only this message | 1587 > Lower name should show only this message |
1588 > | 1588 > |
1589 > subsequent section | 1589 > subsequent section |
1590 > ------------------ | 1590 > ------------------ |
1591 > | 1591 > |
1592 > This should be hidden at "hg help ambiguous" with section name. | 1592 > This should be hidden at 'hg help ambiguous' with section name. |
1593 > ''' | 1593 > ''' |
1594 > """ % (escape(upper), escape(lower))) | 1594 > """ % (escape(upper), escape(lower))) |
1595 > EOF | 1595 > EOF |
1596 | 1596 |
1597 $ cat >> $HGRCPATH <<EOF | 1597 $ cat >> $HGRCPATH <<EOF |