Show More
@@ -1,13 +1,14 b'' | |||
|
1 | 1 | Subrepositories let you nest external repositories or projects into a |
|
2 | 2 | parent Mercurial repository, and make commands operate on them as a |
|
3 | group. External Mercurial and Subversion projects are currently | |
|
4 | supported. | |
|
3 | group. | |
|
4 | ||
|
5 | Mercurial currently supports Mercurial, Git, and Subversion | |
|
6 | subrepositories. | |
|
5 | 7 | |
|
6 | 8 | Subrepositories are made of three components: |
|
7 | 9 | |
|
8 | 10 | 1. Nested repository checkouts. They can appear anywhere in the |
|
9 | parent working directory, and are Mercurial clones or Subversion | |
|
10 | checkouts. | |
|
11 | parent working directory. | |
|
11 | 12 | |
|
12 | 13 | 2. Nested repository references. They are defined in ``.hgsub`` and |
|
13 | 14 | tell where the subrepository checkouts come from. Mercurial |
@@ -15,12 +16,15 b' 2. Nested repository references. They ar' | |||
|
15 | 16 | |
|
16 | 17 | path/to/nested = https://example.com/nested/repo/path |
|
17 | 18 | |
|
19 | Git and Subversion subrepos are also supported: | |
|
20 | ||
|
21 | path/to/nested = [git]git://example.com/nested/repo/path | |
|
22 | path/to/nested = [svn]https://example.com/nested/trunk/path | |
|
23 | ||
|
18 | 24 | where ``path/to/nested`` is the checkout location relatively to the |
|
19 | 25 | parent Mercurial root, and ``https://example.com/nested/repo/path`` |
|
20 | 26 | is the source repository path. The source can also reference a |
|
21 | filesystem path. Subversion repositories are defined with: | |
|
22 | ||
|
23 | path/to/nested = [svn]https://example.com/nested/trunk/path | |
|
27 | filesystem path. | |
|
24 | 28 | |
|
25 | 29 | Note that ``.hgsub`` does not exist by default in Mercurial |
|
26 | 30 | repositories, you have to create and add it to the parent |
General Comments 0
You need to be logged in to leave comments.
Login now