Patchwork [4,of,4] doc: describe full help document hierarchy to create a valid link in HTML

login
register
mail settings
Submitter Katsunori FUJIWARA
Date Feb. 11, 2016, 2:18 p.m.
Message ID <fe6d7e732e8513cebbd8.1455200308@feefifofum>
Download mbox | patch
Permalink /patch/13116/
State Accepted
Headers show

Comments

Katsunori FUJIWARA - Feb. 11, 2016, 2:18 p.m.
# HG changeset patch
# User FUJIWARA Katsunori <foozy@lares.dti.ne.jp>
# Date 1455200134 -32400
#      Thu Feb 11 23:15:34 2016 +0900
# Node ID fe6d7e732e8513cebbd8b5a2745d165663836470
# Parent  c68e5de523aa58c922bb9b148bf7136d4a57445e
doc: describe full help document hierarchy to create a valid link in HTML

For example, ":hg:`help config.default-push`" creates an invalid link
to "hgrc.5.html#default-push" in HTML, but ":hg:`help
config.paths.default-push`" creates a valid link to
"hgrc.5.html#paths".
Pierre-Yves David - Feb. 12, 2016, 1:37 p.m.
On 02/11/2016 02:18 PM, FUJIWARA Katsunori wrote:
> # HG changeset patch
> # User FUJIWARA Katsunori <foozy@lares.dti.ne.jp>
> # Date 1455200134 -32400
> #      Thu Feb 11 23:15:34 2016 +0900
> # Node ID fe6d7e732e8513cebbd8b5a2745d165663836470
> # Parent  c68e5de523aa58c922bb9b148bf7136d4a57445e
> doc: describe full help document hierarchy to create a valid link in HTML

Nice, should we also graft that on stable?

pushed to the clowncopter.
Katsunori FUJIWARA - Feb. 12, 2016, 6:25 p.m.
At Fri, 12 Feb 2016 13:37:29 +0000,
Pierre-Yves David wrote:
> 
> On 02/11/2016 02:18 PM, FUJIWARA Katsunori wrote:
> > # HG changeset patch
> > # User FUJIWARA Katsunori <foozy@lares.dti.ne.jp>
> > # Date 1455200134 -32400
> > #      Thu Feb 11 23:15:34 2016 +0900
> > # Node ID fe6d7e732e8513cebbd8b5a2745d165663836470
> > # Parent  c68e5de523aa58c922bb9b148bf7136d4a57445e
> > doc: describe full help document hierarchy to create a valid link in HTML
> 
> Nice, should we also graft that on stable?

If reasonable.

I posted this series without STABLE flag, just because problems fixed
by this seem not so urgent and serious. This series can be applied
also on stable, AFAIK.

> pushed to the clowncopter.
> 
> -- 
> Pierre-Yves David
> 

----------------------------------------------------------------------
[FUJIWARA Katsunori]                             foozy@lares.dti.ne.jp

Patch

diff --git a/hgext/histedit.py b/hgext/histedit.py
--- a/hgext/histedit.py
+++ b/hgext/histedit.py
@@ -901,7 +901,7 @@  def histedit(ui, repo, *freeargs, **opts
     - Specify ANCESTOR directly
 
     - Use --outgoing -- it will be the first linear changeset not
-      included in destination. (See :hg:`help config.default-push`)
+      included in destination. (See :hg:`help config.paths.default-push`)
 
     - Otherwise, the value from the "histedit.defaultrev" config option
       is used as a revset to select the base revision when ANCESTOR is not
diff --git a/mercurial/help/config.txt b/mercurial/help/config.txt
--- a/mercurial/help/config.txt
+++ b/mercurial/help/config.txt
@@ -800,7 +800,7 @@  variables it is passed are listed with n
 ``outgoing``
   Run after sending changes from local repository to another. ID of
   first changeset sent is in ``$HG_NODE``. Source of operation is in
-  ``$HG_SOURCE``; Also see :hg:`help config.preoutgoing` hook.
+  ``$HG_SOURCE``; Also see :hg:`help config.hooks.preoutgoing` hook.
 
 ``post-<command>``
   Run after successful invocations of the associated command. The
@@ -881,11 +881,11 @@  variables it is passed are listed with n
 ``txnclose``
   Run after any repository transaction has been committed. At this
   point, the transaction can no longer be rolled back. The hook will run
-  after the lock is released. See :hg:`help config.pretxnclose` docs for
+  after the lock is released. See :hg:`help config.hooks.pretxnclose` docs for
   details about available variables.
 
 ``txnabort``
-  Run when a transaction is aborted. See :hg:`help config.pretxnclose`
+  Run when a transaction is aborted. See :hg:`help config.hooks.pretxnclose`
   docs for details about available variables.
 
 ``pretxnchangegroup``