size of repository with many branches, vs. git

Patrick Mézard pmezard at
Sun Mar 30 16:37:28 CDT 2008

Dov Feldstern a écrit :
> Patrick Mézard wrote:
>> Dov Feldstern a écrit :
>>> Matt Mackall wrote:
>>>> On Sun, 2008-03-30 at 22:03 +0200, Benoit Boissinot wrote:
>>>>> Does tracking the branches in separate clones help ?
>>>> The quick way to answer this question is to do a clone -r of the two
>>>> branches and sum up their sizes.
>>> Oh, wait, I should have stated this explicitly earlier: there are not
>>> 2, but about -25- branches in the repository. At any given time, at
>>> least 2 are active, but all-in-all there are about 25...
>>> I'll try to convert (from my local mercurial -> mercurial) with
>>> hg.clonebranches=1, that should test exactly what we want to,
>>> shouldn't it?
>> Try cloning the branch themselves, clonebranches=1 will do the same
>> thing but will be much slower.
> How do I clone only a single branch?

With clone --rev option. You can pass branch heads or branch names if you converted with them.

More information about the Mercurial mailing list