Subdirectory clone
Sivaraj
sivaraj at mcci.com
Thu Feb 9 06:32:26 UTC 2012
Hello,
I want to clone subdirectories of a Mercurial repository. I am new to
Mercurial, and I explored the help page about subrepos, but could not
get enough details that I wanted. We have recently converted a CVS repo
into Mercurial repo and we need to clone subdirectories of the
repository like we checkout them as individual modules using CVS earlier.
The structure of the Mercurial repo is as below:
main
|
|- .hg
|- subdir1
| |- subdir11
| |- subdir12
| | |- subdir121
| | |- subdir122
| | |- ...
| |- ....
|- subdir2
| |- subdir21
| |- subdir22
| |- ....
|- subdir3
|- ......
I have to be able to clone subdir1 or subdir11 or subdir2 or subdir21 or
subdir122, etc, individually.
I think I need to convert the above repo as below to achieve this:
main
|
|- .hg
|- subdir1
| |- .hg
| |- subdir11
| |- subdir12
| | |- .hg
| | |- subdir121
| | |- subdir122
| | |- .hgsub
| |- .hgsub
|- subdir2
| |- .hg
| |- subdir21
| |- subdir22
| |- .hgsub
|- subdir3
|- .hgsub
But I could not find ways to convert the existing subdirectories in a
repo to subrepo in-place in the repo itself.
Can any one help me how to achieve this in mercurial?
Thanks,
Sivaraj
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mercurial-scm.org/pipermail/mercurial/attachments/20120209/32846ad4/attachment-0002.html>
More information about the Mercurial
mailing list