Show More
@@ -0,0 +1,37 b'' | |||
|
1 | .. _subrepos: | |
|
2 | ||
|
3 | ============================================= | |
|
4 | working with RhodeCode and mercurial subrepos | |
|
5 | ============================================= | |
|
6 | ||
|
7 | example usage of Subrepos with RhodeCode:: | |
|
8 | ||
|
9 | ## init a simple repo | |
|
10 | hg init repo1 | |
|
11 | cd repo1 | |
|
12 | echo "file1" > file1 | |
|
13 | hg add file1 | |
|
14 | hg ci --message "initial file 1" | |
|
15 | ||
|
16 | #clone subrepo we want to add | |
|
17 | hg clone http://rc.local/subrepo | |
|
18 | ||
|
19 | ## use path like url to existing repo in RhodeCode | |
|
20 | echo "subrepo = http://rc.local/subrepo" > .hgsub | |
|
21 | ||
|
22 | hg add .hgsub | |
|
23 | hg ci --message "added remote subrepo" | |
|
24 | ||
|
25 | ||
|
26 | ||
|
27 | In file list of repo1 you will see a connected subrepo at revision it was | |
|
28 | during cloning. | |
|
29 | Clicking in subrepos link should send you to proper repository in RhodeCode | |
|
30 | ||
|
31 | cloning repo1 will also clone attached subrepository. | |
|
32 | ||
|
33 | Next we can edit the subrepo data, and push back to RhodeCode. This will update | |
|
34 | both of repositories. | |
|
35 | ||
|
36 | see http://mercurial.aragost.com/kick-start/en/subrepositories/ for more | |
|
37 | information about subrepositories No newline at end of file |
@@ -1,63 +1,64 b'' | |||
|
1 | 1 | .. _index: |
|
2 | 2 | |
|
3 | 3 | .. include:: ./../README.rst |
|
4 | 4 | |
|
5 | 5 | Users Guide |
|
6 | 6 | ----------- |
|
7 | 7 | |
|
8 | 8 | **Installation:** |
|
9 | 9 | |
|
10 | 10 | .. toctree:: |
|
11 | 11 | :maxdepth: 1 |
|
12 | 12 | |
|
13 | 13 | installation |
|
14 | 14 | setup |
|
15 | 15 | upgrade |
|
16 | 16 | |
|
17 | 17 | **Usage** |
|
18 | 18 | |
|
19 | 19 | .. toctree:: |
|
20 | 20 | :maxdepth: 1 |
|
21 | 21 | |
|
22 | 22 | usage/general |
|
23 | 23 | usage/git_support |
|
24 | 24 | usage/performance |
|
25 | 25 | usage/locking |
|
26 | 26 | usage/statistics |
|
27 | 27 | usage/backup |
|
28 | usage/subrepos | |
|
28 | 29 | usage/debugging |
|
29 | 30 | usage/troubleshooting |
|
30 | 31 | |
|
31 | 32 | **Develop** |
|
32 | 33 | |
|
33 | 34 | .. toctree:: |
|
34 | 35 | :maxdepth: 1 |
|
35 | 36 | |
|
36 | 37 | contributing |
|
37 | 38 | changelog |
|
38 | 39 | |
|
39 | 40 | **API** |
|
40 | 41 | |
|
41 | 42 | .. toctree:: |
|
42 | 43 | :maxdepth: 1 |
|
43 | 44 | |
|
44 | 45 | api/api |
|
45 | 46 | api/models |
|
46 | 47 | |
|
47 | 48 | |
|
48 | 49 | Other topics |
|
49 | 50 | ------------ |
|
50 | 51 | |
|
51 | 52 | * :ref:`genindex` |
|
52 | 53 | * :ref:`search` |
|
53 | 54 | |
|
54 | 55 | .. _virtualenv: http://pypi.python.org/pypi/virtualenv |
|
55 | 56 | .. _python: http://www.python.org/ |
|
56 | 57 | .. _django: http://www.djangoproject.com/ |
|
57 | 58 | .. _mercurial: http://mercurial.selenic.com/ |
|
58 | 59 | .. _bitbucket: http://bitbucket.org/ |
|
59 | 60 | .. _subversion: http://subversion.tigris.org/ |
|
60 | 61 | .. _git: http://git-scm.com/ |
|
61 | 62 | .. _celery: http://celeryproject.org/ |
|
62 | 63 | .. _Sphinx: http://sphinx.pocoo.org/ |
|
63 | 64 | .. _vcs: http://pypi.python.org/pypi/vcs No newline at end of file |
General Comments 0
You need to be logged in to leave comments.
Login now