Clone subdir only from a large repository?

Martin Geisler mg at daimi.au.dk
Thu Jul 17 02:02:50 CDT 2008


rubik <rubik at sina.com> writes:

Hi Rubik

> Masklinn <masklinn <at> masklinn.net> writes:
>
>> As Martin pointed out, this isn't possible at the moment. On the
>> other hand, I'd strongly suggest to check if you couldn't split
>> your "big" project into smaller (and independant) subprojects which
>> you'd link together via a mercurial forest.
>
> hi, is there an easy way to split a subdir into a seperate project ?

You can do this with the standard convert extension. The trick is to
do a "conversion" from hg -> hg and use the --filemap argument to only
include the subdirectory you want.

That will preserve the history of those files.

-- 
Martin Geisler

VIFF (Virtual Ideal Functionality Framework) brings easy and efficient
SMPC (Secure Multi-Party Computation) to Python. See: http://viff.dk/.


More information about the Mercurial mailing list