tags:

views:

266

answers:

2

can i check out only a sub directory from mercurial repository, it seems i can only check out the whole repository.

+6  A: 

No, you cannot.

http://mercurial.selenic.com/wiki/PartialClone

clee
One day that feature will exist.
Omnifarious
Hopefully! But considering how hg and git both store the repository history, it's unlikely to happen soon.
clee
ACtually, from what I know of how Mercurial does it vs. git, it should be easier to implement in Mercurial. Though all the ways I know of will still result in manifest files that are a lot bigger than they strictly need to be.
Omnifarious
+2  A: 

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.

Omnifarious