How do you create a stable-only repo?

Steve Losh steve at stevelosh.com
Thu Apr 15 16:56:22 CDT 2010


On Apr 15, 2010, at 5:51 PM, Benoit Boissinot wrote:

> [please keep the list cc'ed]
> 
> On Thu, Apr 15, 2010 at 11:08:57PM +0200, José M. Prieto wrote:
>> 2010/4/14 Benoit Boissinot <bboissin at gmail.com>:
>>> On Wed, Apr 14, 2010 at 9:39 AM, Kommit <kommit at gmail.com> wrote:
>>>> http://selenic.com/repo/
>>>> I found there are 2 mercurial source repo here, one is called
>>>> "Mercurial", another one is "Mercurial (stable branch)"
>>>> how to achieve this?
>>>> I want to create one repo from another, but with only one branch.
>>>> seems "hg clone --branch stable" is not doing this.
>>> 
>>> hg clone -r stable
>> 
>> Yes, but (from hg help clone):
>> 
>> -b --branch        clone only the specified branch
>> 
>> ¿Isn't it a bug?
> 
> Probably? I don't see where -b is useful instead of -r.
> Anyone?

If 'stable' has two heads, 'hg clone -b stable' would include both, whereas 'hg clone -r stable' would only include the tipmost stable head, right?

> 
> Benoit
> -- 
> :wq
> _______________________________________________
> Mercurial mailing list
> Mercurial at selenic.com
> http://selenic.com/mailman/listinfo/mercurial



More information about the Mercurial mailing list