[PATCH STABLE] help: document that [subpaths] may rewrite relative paths

Mike Miller mike at mtmxr.com
Thu Jun 16 16:49:47 UTC 2016


# HG changeset patch
# User Mike Miller <mike at mtmxr.com>
# Date 1466093712 25200
#      Thu Jun 16 09:15:12 2016 -0700
# Branch stable
# Node ID 485196f4863942c93a8c1cff7def6d20a804fda3
# Parent  f359cdc91e21bb120d2c28049c403d995225ea70
help: document that [subpaths] may rewrite relative paths

The subpaths substitution logic first attempts to match the absolute
repository path, then the relative subrepository path if that failed.

diff --git a/mercurial/help/config.txt b/mercurial/help/config.txt
--- a/mercurial/help/config.txt
+++ b/mercurial/help/config.txt
@@ -1485,8 +1485,9 @@ rewrite it. Groups can be matched in ``p
 rewrites ``http://server/foo-hg/`` into ``http://hg.server/foo/``.
 
 Relative subrepository paths are first made absolute, and the
-rewrite rules are then applied on the full (absolute) path. The rules
-are applied in definition order.
+rewrite rules are then applied on the full (absolute) path. If ``pattern``
+doesn't match the full path, an attempt is made to apply it on the
+relative path alone. The rules are applied in definition order.
 
 ``templatealias``
 -----------------


More information about the Mercurial-devel mailing list