Patchwork [1,of,3,STABLE] convert: correct 'hooks' section name in online help

login
register
mail settings
Submitter Katsunori FUJIWARA
Date Jan. 14, 2013, 2:19 p.m.
Message ID <6c866a261c948b84cf09.1358173149@juju>
Download mbox | patch
Permalink /patch/594/
State Accepted
Commit c51d2bc7a5d7d6e97c7a8140308acc439219dbc2
Headers show

Comments

Katsunori FUJIWARA - Jan. 14, 2013, 2:19 p.m.
# HG changeset patch
# User FUJIWARA Katsunori <foozy@lares.dti.ne.jp>
# Date 1358172885 -32400
# Branch stable
# Node ID 6c866a261c948b84cf0940b3b0caa3af9538c2b5
# Parent  0f9013112ebae38ae07ad58501b64a38757aeea9
convert: correct 'hooks' section name in online help

The section name for hooks is not 'hook', but 'hooks'.

Patch

diff --git a/hgext/convert/__init__.py b/hgext/convert/__init__.py
--- a/hgext/convert/__init__.py
+++ b/hgext/convert/__init__.py
@@ -191,12 +191,12 @@ 
         branch indicated in the regex as the second parent of the
         changeset. Default is ``{{mergefrombranch ([-\\w]+)}}``
 
-    :hook.cvslog: Specify a Python function to be called at the end of
+    :hooks.cvslog: Specify a Python function to be called at the end of
         gathering the CVS log. The function is passed a list with the
         log entries, and can modify the entries in-place, or add or
         delete them.
 
-    :hook.cvschangesets: Specify a Python function to be called after
+    :hooks.cvschangesets: Specify a Python function to be called after
         the changesets are calculated from the CVS log. The
         function is passed a list with the changeset entries, and can
         modify the changesets in-place, or add or delete them.
diff --git a/tests/test-convert.t b/tests/test-convert.t
--- a/tests/test-convert.t
+++ b/tests/test-convert.t
@@ -172,11 +172,11 @@ 
                     will add the most recent revision on the branch indicated in
                     the regex as the second parent of the changeset. Default is
                     "{{mergefrombranch ([-\w]+)}}"
-      hook.cvslog   Specify a Python function to be called at the end of
+      hooks.cvslog  Specify a Python function to be called at the end of
                     gathering the CVS log. The function is passed a list with
                     the log entries, and can modify the entries in-place, or add
                     or delete them.
-      hook.cvschangesets
+      hooks.cvschangesets
                     Specify a Python function to be called after the changesets
                     are calculated from the CVS log. The function is passed a
                     list with the changeset entries, and can modify the