##// END OF EJS Templates
added simple subrepos docs
marcink -
r3073:e54ec821 beta
parent child Browse files
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
@@ -25,6 +25,7 b' Users Guide'
25 usage/locking
25 usage/locking
26 usage/statistics
26 usage/statistics
27 usage/backup
27 usage/backup
28 usage/subrepos
28 usage/debugging
29 usage/debugging
29 usage/troubleshooting
30 usage/troubleshooting
30
31
General Comments 0
You need to be logged in to leave comments. Login now