[PATCH] commit: fix rest syntax of examples
Yuya Nishihara
yuya at tcha.org
Sun Dec 6 08:35:48 UTC 2015
# HG changeset patch
# User Yuya Nishihara <yuya at tcha.org>
# Date 1449389797 -32400
# Sun Dec 06 17:16:37 2015 +0900
# Node ID 2feca08911aa706d299ca1336c1c00e3811cc50e
# Parent a0b0b200db59805631478493146a695f7369598c
commit: fix rest syntax of examples
This fixes the formatting of help/commit page and silence test-gendoc.t.
diff --git a/mercurial/commands.py b/mercurial/commands.py
--- a/mercurial/commands.py
+++ b/mercurial/commands.py
@@ -1590,15 +1590,15 @@ def commit(ui, repo, *pats, **opts):
Examples:
- - commit all files ending in .py:
+ - commit all files ending in .py::
hg commit --include "set:**.py"
- - commit all non-binary files:
+ - commit all non-binary files::
hg commit --exclude "set:binary()"
- - amend the current commit and set the date to now:
+ - amend the current commit and set the date to now::
hg commit --amend --date now
"""
More information about the Mercurial-devel
mailing list