Could use a "create remote branch and checkout this locally" workflow

Bug #430251 reported by John A Meinel
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Bazaar Explorer
Fix Released
Wishlist
Ian Clatworthy

Bug Description

At the moment bzr-explorer supports creating a remote branch in the standard "Branch" dialog.

However, it requires another step to start using that locally.

It would be nice to have an "and checkout to here" or a "and switch this tree to that branch"

Changed in bzr-explorer:
importance: Undecided → Wishlist
status: New → Confirmed
Revision history for this message
John A Meinel (jameinel) wrote :

I'll note that the nicer UI would be:

  create a branch from this remote location to this remote location
  create a local branch pointing at the new remote location
  and make the local branch bound to the new remote location
  and change my local working tree to point at the new local branch

I don't know really where this would fit in the UI (presumably under Start), or how to make a decent dialog for it. But it certainly would make that sort of work easier.

Revision history for this message
Alexander Belchenko (bialix) wrote :

This sounds crazy. All this checkouts chain. ETOOCOMPLICATEDFORME

Revision history for this message
Dr Al (abudden) wrote :

I don't think it's quite what you want, but there's a branch that implements the idea of creating a remote branch and checking it out available here: lp:~abudden/bzr-explorer/remote-feature-branches

This creates a feature branch design at the remote location and then checks it out locally. It doesn't support simple remote branches being checked out, nor does it support getting another remote branch.

As a relatively new Bazaar user, in most cases I just create a new branch (using the remote feature branches option), but I'd quite like the idea of having another option (possibly in Branch rather than Initialise) that says:

* Create a new shared repository at [NEW_LOCATION]
* Go and get a branch from [OLD_LOCATION]
* Copy it to [NEW_LOCATION]/trunk
* Checkout [NEW_LOCATION]/trunk to a local working directory

This would complement the remote feature branches patch rather nicely.

I must confess that I read comment #1 several times, but got lost (possibly because the workflow is slightly different to mine), so I apologise if this comment isn't as relevant to you as I'd hoped...

Revision history for this message
Ian Clatworthy (ian-clatworthy) wrote :

You can now plugin in your own workspace models

Changed in bzr-explorer:
assignee: nobody → Ian Clatworthy (ian-clatworthy)
milestone: none → 1.0.0beta
status: Confirmed → Fix Released
Revision history for this message
Ian Clatworthy (ian-clatworthy) wrote : Re: [Bug 430251] Re: Could use a "create remote branch and checkout this locally" workflow

Dr Al wrote:
> but I'd quite like
> the idea of having another option (possibly in Branch rather than
> Initialise) that says:
>
> * Create a new shared repository at [NEW_LOCATION]
> * Go and get a branch from [OLD_LOCATION]
> * Copy it to [NEW_LOCATION]/trunk
> * Checkout [NEW_LOCATION]/trunk to a local working directory

So Branch ought to go very close to doing exactly that already. If
NEW_LOCATION is outside a shared repo, the branch dialog will prompt you
to create one. If you do that, it *should* update the destination
location to be OLD_LOCATION/trunk. Click OK and all works.

I say "should" because it doesn't work for me on Linux for some reason
I'm yet to investigate. It was working on Windows though last time I
tried it.

Ian C.

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.