Patchwork commit: fix rest syntax of examples

login
register
mail settings
Submitter Yuya Nishihara
Date Dec. 6, 2015, 8:35 a.m.
Message ID <2feca08911aa706d299c.1449390948@mimosa>
Download mbox | patch
Permalink /patch/11853/
State Accepted
Headers show

Comments

Yuya Nishihara - Dec. 6, 2015, 8:35 a.m.
# HG changeset patch
# User Yuya Nishihara <yuya@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.
Pierre-Yves David - Dec. 6, 2015, 8:38 a.m.
On 12/06/2015 12:35 AM, Yuya Nishihara wrote:
> # HG changeset patch
> # User Yuya Nishihara <yuya@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.

urg, time to unlock test-gendoc.t on my testing machin I guess.

Patch

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
     """