how to create a working tree? add "create-tree" alias to "checkout"

Bug #105432 reported by Stefan Metzmacher
4
Affects Status Importance Assigned to Milestone
Bazaar
Confirmed
Low
Unassigned
Breezy
Triaged
Low
Unassigned

Bug Description

I was searching for a way to create a working tree on a branch without one.

bzr help commands lists remove-tree and clean-tree

I hoped to find "create-tree"... and finally "bzr checkout ." does what I want:-)

11:27 < metze> how can I create a working tree when I already have the .bzr directory with a branch
11:28 < metze> I only notice a remove-tree, why isn't there a create-tree?
11:29 < Kinnison> bzr checkout .
11:30 < tigger^> maybe an uncheckout alias makes sense :)
11:30 < tigger^> although kinda confusing what that might mean
11:31 < lifeless> inverse(checkout) == checkin
11:31 < lifeless> inverse(checkout) == uncheckout
11:31 < lifeless> hmm
11:31 < lifeless> so uncheckin ?
11:32 < tigger^> eww
11:33 < Kinnison> Adding a 'create-tree' alias to checkout wouldn't be too hard
11:33 < tigger^> I think create-tree sounds nice
11:33 < tigger^> I assume remove-tree is "uncheckout" ?
11:35 < metze> Kinnison: thx, that's what I was searching for
11:36 < Kinnison> metze: I wrote remove-tree after I had done a "checkout ." in a repo by mistake :_)
11:36 < metze> an create-tree alias would be nice and maybe help other people in future
11:36 < metze> :-)
11:37 < Kinnison> Please file a bug against the bzr product in launchpad
11:37 < Kinnison> So that it doesn't get forgotten

Related branches

Revision history for this message
Aaron Bentley (abentley) wrote : Re: [Bug 105432] how to create a working tree? add "create-tree" alias to "checkout"

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Stefan Metzmacher wrote:
> Public bug reported:
>
> I was searching for a way to create a working tree on a branch without
> one.

Bzr checkout does some other things that are very different, so I don't
think it makes sense to allow "create-tree" to be used for the full
range of "bzr checkout" functionality.

Maybe the create-tree stuff should be split out of bzr checkout.

Aaron
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.3 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFGHM/30F+nu1YWqI0RAg+HAJ9HNuoXK82uQWYuTDZ7u+IPorSjhQCdE+lf
XRVm+KFIq8dfXBJx7xZVuEY=
=PcNV
-----END PGP SIGNATURE-----

Revision history for this message
James Westby (james-w) wrote :

On (11/04/07 12:09), Aaron Bentley wrote:
> Stefan Metzmacher wrote:
> > Public bug reported:
> >
> > I was searching for a way to create a working tree on a branch without
> > one.
>
> Bzr checkout does some other things that are very different, so I don't
> think it makes sense to allow "create-tree" to be used for the full
> range of "bzr checkout" functionality.
>
> Maybe the create-tree stuff should be split out of bzr checkout.
>

Yes, as then the default can be ., which doesn't make much sense as a
default for checkout.

Thanks,

James

--
  James Westby -- GPG Key ID: B577FE13 -- http://jameswestby.net/
  seccure key - (3+)k7|M*edCX/.A:n*N!>|&7U.L#9E)Tu)T0>AM - secp256r1/nistp256

Revision history for this message
John A Meinel (jameinel) wrote :

Well, it already has a default of '.'

cd branch
bzr checkout

will create a local working tree for the local branch.

But I do understand that 'bzr create-tree' might make more sense in its place.

Revision history for this message
James Westby (james-w) wrote : Re: [Bug 105432] Re: how to create a working tree? add "create-tree" alias to "checkout"

On (11/04/07 20:31), John A Meinel wrote:
> Well, it already has a default of '.'
>
> cd branch
> bzr checkout
>
> will create a local working tree for the local branch.
>

Ah, I did not know that. It does mean that you get a slightly strange
error message with no arguments though.

It just goes to show what happens if you speak without checking though,
sorry about that.

Thanks,

James

--
  James Westby -- GPG Key ID: B577FE13 -- http://jameswestby.net/
  seccure key - (3+)k7|M*edCX/.A:n*N!>|&7U.L#9E)Tu)T0>AM - secp256r1/nistp256

Revision history for this message
John A Meinel (jameinel) wrote :

James Westby wrote:
...

> Ah, I did not know that. It does mean that you get a slightly strange
> error message with no arguments though.
>
> It just goes to show what happens if you speak without checking though,
> sorry about that.
>
> Thanks,
>
> James
>

Yeah, but I agree that the error message means we really should have 2
commands. "bzr checkout" and "bzr create-tree". So that you can have a
proper default for 'create-tree', and not overload 'checkout'.

I think 'bzr checkout .' could still work, as could "bzr checkout branch"

Since the default to_location is the same as the branch you are
operating on.

Just that 'create-tree' is more clear about what you are actually asking
to do.

John
=:->

Martin Pool (mbp)
Changed in bzr:
importance: Undecided → Low
status: Unconfirmed → Confirmed
Dan Watkins (oddbloke)
Changed in bzr:
assignee: nobody → daniel-thewatkins
status: Confirmed → In Progress
Revision history for this message
John A Meinel (jameinel) wrote :

Daniel, did you mean to propose your branch for merging? The last commit is 3.5 years old. So I'm guessing this should not be considered In Progress. Instead it should either be put back as "something we should do", or landed.

tags: added: patch-needswork
Jelmer Vernooij (jelmer)
Changed in bzr:
assignee: Daniel Watkins (daniel-thewatkins) → Jelmer Vernooij (jelmer)
Jelmer Vernooij (jelmer)
Changed in bzr:
assignee: Jelmer Vernooij (jelmer) → nobody
status: In Progress → Confirmed
Jelmer Vernooij (jelmer)
tags: added: check-for-breezy
Jelmer Vernooij (jelmer)
Changed in brz:
status: New → Triaged
importance: Undecided → Low
tags: removed: check-for-breezy
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.