08:16 < abentley> Better phrasing: 'what circumstances should cause us to produce a working tree in a repository branch'?

Erik Bågfors zindar at gmail.com
Thu Feb 9 22:20:34 GMT 2006


2006/2/9, Erik Bågfors <zindar at gmail.com>:
> > Ok, so now we have the beginning of a counter proposal.  That's a lot better
> > than just dissing my humble suggestion.  Perhaps we could look at the use cases
> > and see how these commands would work in practice (for example standalone vs
> > repo branch, etc...)
>
> I tried to think of thing we need/want to be able to do.  Here is a
> list of things that I think should be fairly easy UI wise.
>
> * Creating a new standalone branch
> * Creating a standalone branch based on another (I mean bzr branch here)
> * Creating a repo
> * Creating a new branch in a repo
> * Listing branches in a repo
> * Checkout branch from repo
> * Creating a new branch in a repo and checkout it
> * Creating a branch based on another branch and store in repo
> * Creating a branch based on another branch, store in repo, and checkout
> * Creating a standalone bound branch
> * Creating a bound branch, stored in repo
> * Creating a bound branch, stored in repo, and checkout

Answering my own mail.  This is with almost no thought behind it, so
feel free to criticize.

I'm not at all sure about how to handle repositories, so here is just
some ideas...
I think we should support paths in the repos, just like svn for
example, so you can have
REPODIR/trunk
REPODIR/branches/0.9
etc....

I think the one step shortcuts I have below are not good :)

It would be really nice to be able to access branches with
REPODIR/path/to/branch but I'm also not 100% sure that that is a good
idea.


* Creating a new standalone branch

bzr init [PATH]

* Creating a standalone branch based on another

bzr branch FROM [TO]

* Creating a repo

bzr create-repo REPOPATH

* Creating a new branch in a repo

bzr init REPOPATH/path/to/branch

* Listing branches in a repo

bzr ls REPODIR (???) or
bzr list-branches REPODIR ... or
bzr list REPODIR ???

* Checkout branch from repo

bzr checkout REPODIR/path/to/branch [destdir]

* Creating a new branch in a repo and checkout

two step:
bzr init REPODIR/path/to/branch
bzr checkout REPODIR/path/to/branch

one step: (???)
bzr init --repo REPODIR/path/to/branch [TO]

* Creating a branch based on another branch and store in repo

bzr branch FROMBRANCH REPODIR/path/to/branch

* Creating a branch based on another branch, store in repo, and checkout

two step:
bzr branch FROMBRANCH REPODIR/path/to/branch
bzr checkout REPODIR/path/to/branch [TO]

one step: (??)
bzr branch --repo REPODIR/path/to/branch FROMBRANCH [TO]

* Creating a standalone bound branch

bzr branch --bound FROMBRANCH [TO]
or
bzr checkout --deep FROMBRANCH [TO]

* Creating a bound branch, stored in repo

two step:
bzr branch --bound FROMBRANCH REPODIR/path/to/branch

* Creating a bound branch, stored in repo, and checkout

two step:
bzr branch --bound FROMBRANCH REPODIR/path/to/branch
bzr checkout REPODIR/path/to/branch

one step: (??)
bzr branch --bound --repo REPODIR/path/to/branch FROMBRANCH [TO]


and of course you need to be able to remove branches within a repo.
Which is where the syntax REPODIR/path/to/branch might be somewhat
strange I assume? But anyway

bzr remove-branch REPODIR/path/to/branch

/Erik - throwing out ideas....




More information about the bazaar mailing list