Problem: on large repos, it would be useful to be able to do a partial clone and/or checkout

Proposal: add a new file like .hgignore to the .hg/ directory that specifies which files should be ignored for clone/checkout.

Issue105 in the BTS covers partial checkouts and suggests using -X/-I on clone or checkout.

To implement:

Not to be confused with TrimmingHistory, which trims in the history tree, not the directory tree.


Comments from Matt Mackall:

> > How hard would this be to implement?

On a scale of 1 to 10, I'd rate it about a 7.

The simplest approach is probably "allow cloning of subdirectories". Here's how that would work:

Merging is the tricky part, and I expect there's a gotcha or two buried in there.


CategoryNewFeatures

PartialClone (last edited 2007-12-21 08:19:18 by ThomasArendsenHein)