How do you create a stable-only repo?

Benoit Boissinot bboissin at gmail.com
Thu Apr 15 16:58:39 CDT 2010


On Thu, Apr 15, 2010 at 05:56:22PM -0400, Steve Losh wrote:
> 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?

Indeed.

Thanks,

Benoit

-- 
:wq


More information about the Mercurial mailing list