Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Check out only a directory from mercurial?

Tags:

mercurial

How can i check out only a sub directory from mercurial repository? It seems i can only check out the whole repository.

like image 624
Benny Avatar asked Jan 22 '10 03:01

Benny


2 Answers

No, you cannot. See the discussion here:

https://www.mercurial-scm.org/wiki/PartialClone

like image 56
clee Avatar answered Sep 23 '22 04:09

clee


You can't do it. The feature is planned, but not implemented. The previous person gave a nice link to where you can read a discussion about the partial clone feature.

For now, you should just be really careful to divide things up so a repository is a fairly small unit that makes logical sense to manage in one piece. The existence of the ability to have subrepos might help you organize and manage things until that feature exists.

like image 20
Omnifarious Avatar answered Sep 21 '22 04:09

Omnifarious