comparison mercurial/commands.py @ 27254:6ca28c47228a

commit: fix rest syntax of examples This fixes the formatting of help/commit page and silence test-gendoc.t.
author Yuya Nishihara <yuya@tcha.org>
date Sun, 06 Dec 2015 17:16:37 +0900
parents be7ef03d7fb6
children 5606f7d0d063
comparison
equal deleted inserted replaced
27253:f43988e5954c 27254:6ca28c47228a
1588 1588
1589 .. container:: verbose 1589 .. container:: verbose
1590 1590
1591 Examples: 1591 Examples:
1592 1592
1593 - commit all files ending in .py: 1593 - commit all files ending in .py::
1594 1594
1595 hg commit --include "set:**.py" 1595 hg commit --include "set:**.py"
1596 1596
1597 - commit all non-binary files: 1597 - commit all non-binary files::
1598 1598
1599 hg commit --exclude "set:binary()" 1599 hg commit --exclude "set:binary()"
1600 1600
1601 - amend the current commit and set the date to now: 1601 - amend the current commit and set the date to now::
1602 1602
1603 hg commit --amend --date now 1603 hg commit --amend --date now
1604 """ 1604 """
1605 wlock = lock = None 1605 wlock = lock = None
1606 try: 1606 try: