Mercurial > hg
comparison doc/hgrc.5.txt @ 12827:042bc18dee4b stable
hgrc: document [subpaths] section
author | Patrick Mezard <pmezard@gmail.com> |
---|---|
date | Sun, 24 Oct 2010 18:39:02 +0200 |
parents | c77f6276c9e7 |
children | 4fdb4b18eb3d |
comparison
equal
deleted
inserted
replaced
12826:4d622380ab39 | 12827:042bc18dee4b |
---|---|
795 ``validate`` | 795 ``validate`` |
796 Whether to validate the completeness of pushed changesets by | 796 Whether to validate the completeness of pushed changesets by |
797 checking that all new file revisions specified in manifests are | 797 checking that all new file revisions specified in manifests are |
798 present. Default is False. | 798 present. Default is False. |
799 | 799 |
800 ``subpaths`` | |
801 """""""""""" | |
802 Defines subrepositories source locations rewriting rules of the form:: | |
803 | |
804 <pattern> = <replacement> | |
805 | |
806 Where ``pattern`` is a regular expression matching the source and | |
807 ``replacement`` is the replacement string used to rewrite it. Groups | |
808 can be matched in ``pattern`` and referenced in ``replacements``. For | |
809 instance:: | |
810 | |
811 http://server/(.*)-hg/ = http://hg.server/\1/ | |
812 | |
813 rewrites ``http://server/foo-hg/`` into ``http://hg.server/foo/``. | |
814 | |
815 All patterns are applied in definition order. | |
816 | |
800 ``trusted`` | 817 ``trusted`` |
801 """"""""""" | 818 """"""""""" |
802 | 819 |
803 Mercurial will not use the settings in the | 820 Mercurial will not use the settings in the |
804 ``.hg/hgrc`` file from a repository if it doesn't belong to a trusted | 821 ``.hg/hgrc`` file from a repository if it doesn't belong to a trusted |