[MERGE] Add --no-checkout option to branch to create workingtree-less branches.
Michael Ellerman
michael at ellerman.id.au
Fri Jul 7 04:45:55 BST 2006
On Thu, 2006-07-06 at 09:16 -0500, John Arbash Meinel wrote:
> Michael Ellerman wrote:
> > Hi list,
> >
> > Add --no-checkout option to branch to create workingtree-less branches.
> >
> > This is useful in shared repositories when creating temporary branches,
> > the majority of the time spent branching is the creation of the working
> > tree. In some cases a working tree isn't necessary. Tests included.
> I think the first test is that a working tree shouldn't be created if
> the Repository has 'no-working-trees' flag set. Which seems to be the
> case on my end.
>
> What sort of temp branch are you creating, in a repo with working trees,
> such that you don't want a working tree? Just like a snapshot/tag/etc?
I can't remember what it was useful for to be honest. But keep in mind
that for the trees I'm talking about, a regular branch takes 7 1/2
minutes, whereas a 'branch --no-checkout' takes 1 _second_.
I'm away for a few days so I'll have a look at fixing it up when I get
back.
cheers
--
Michael Ellerman
IBM OzLabs
wwweb: http://michael.ellerman.id.au
phone: +61 2 6212 1183 (tie line 70 21183)
We do not inherit the earth from our ancestors,
we borrow it from our children. - S.M.A.R.T Person
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 191 bytes
Desc: This is a digitally signed message part
Url : https://lists.ubuntu.com/archives/bazaar/attachments/20060707/ae7214d3/attachment.pgp
More information about the bazaar
mailing list