comparison mercurial/help/subrepos.txt @ 16503:c27a769d9703 stable

doc: add description about location of management files for subrepo
author FUJIWARA Katsunori <foozy@lares.dti.ne.jp>
date Mon, 23 Apr 2012 00:33:09 +0900
parents 95174c381525
children 979b107eaea2
comparison
equal deleted inserted replaced
16502:8298d220cbf9 16503:c27a769d9703
8 Subrepositories are made of three components: 8 Subrepositories are made of three components:
9 9
10 1. Nested repository checkouts. They can appear anywhere in the 10 1. Nested repository checkouts. They can appear anywhere in the
11 parent working directory. 11 parent working directory.
12 12
13 2. Nested repository references. They are defined in ``.hgsub`` and 13 2. Nested repository references. They are defined in ``.hgsub``, which
14 should be placed in the root of working directory, and
14 tell where the subrepository checkouts come from. Mercurial 15 tell where the subrepository checkouts come from. Mercurial
15 subrepositories are referenced like: 16 subrepositories are referenced like:
16 17
17 path/to/nested = https://example.com/nested/repo/path 18 path/to/nested = https://example.com/nested/repo/path
18 19
28 29
29 Note that ``.hgsub`` does not exist by default in Mercurial 30 Note that ``.hgsub`` does not exist by default in Mercurial
30 repositories, you have to create and add it to the parent 31 repositories, you have to create and add it to the parent
31 repository before using subrepositories. 32 repository before using subrepositories.
32 33
33 3. Nested repository states. They are defined in ``.hgsubstate`` and 34 3. Nested repository states. They are defined in ``.hgsubstate``, which
35 is placed in the root of working directory, and
34 capture whatever information is required to restore the 36 capture whatever information is required to restore the
35 subrepositories to the state they were committed in a parent 37 subrepositories to the state they were committed in a parent
36 repository changeset. Mercurial automatically record the nested 38 repository changeset. Mercurial automatically record the nested
37 repositories states when committing in the parent repository. 39 repositories states when committing in the parent repository.
38 40