# HG changeset patch # User Patrick Mezard # Date 1287938342 -7200 # Node ID 042bc18dee4b3f72bafb078366d1a78b5c32a93f # Parent 4d622380ab3940b08f8ba9bb319582da5f2bb8e3 hgrc: document [subpaths] section diff -r 4d622380ab39 -r 042bc18dee4b doc/hgrc.5.txt --- a/doc/hgrc.5.txt Sun Oct 24 18:37:59 2010 +0200 +++ b/doc/hgrc.5.txt Sun Oct 24 18:39:02 2010 +0200 @@ -797,6 +797,23 @@ checking that all new file revisions specified in manifests are present. Default is False. +``subpaths`` +"""""""""""" +Defines subrepositories source locations rewriting rules of the form:: + + = + +Where ``pattern`` is a regular expression matching the source and +``replacement`` is the replacement string used to rewrite it. Groups +can be matched in ``pattern`` and referenced in ``replacements``. For +instance:: + + http://server/(.*)-hg/ = http://hg.server/\1/ + +rewrites ``http://server/foo-hg/`` into ``http://hg.server/foo/``. + +All patterns are applied in definition order. + ``trusted`` """""""""""