bzr bind should use saved push location

Bug #98644 reported by Jeff Bailey
30
This bug affects 6 people
Affects Status Importance Assigned to Milestone
Bazaar
Confirmed
Wishlist
Unassigned
Breezy
Triaged
Wishlist
Unassigned

Bug Description

A reasonably common workflow for me is to bzr push X; bzr bind X. It would be handy if the bzr bind command would use the cached push location.

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

I also do the same thing. I could have sworn we discussed it, and *didn't* do it for some reason. But the reason escapes me right now.

Changed in bzr:
importance: Undecided → Wishlist
status: Unconfirmed → Confirmed
Revision history for this message
Aaron Bentley (abentley) wrote : Re: [Bug 98644] bzr bind should use saved push location

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

Jeff Bailey wrote:
> Public bug reported:
>
> A reasonably common workflow for me is to bzr push X; bzr bind X. It
> would be handy if the bzr bind command would use the cached push
> location.

If you use the 'dirstate-tags' format, "bzr bind" will automatically
bind to wherever you were bound last. Does that help your use case?

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

iD8DBQFGC+4V0F+nu1YWqI0RAqU3AJ0WaoXggk6ALxkTQecWwxBs/HuUBACcDvw3
h4oD6bO1NAOqsnuFYZVjWFU=
=hjDQ
-----END PGP SIGNATURE-----

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

I think his use case is like mine, where I want to take something I've been working on locally, and turn it into a checkout of a public branch. (newly created).

I do this when working on someone else's plugin. Or if I was working on my laptop without an internet connection.

I personally do this at the same time. So it is a single:

bzr push foo/bar
<up arrow, edit push to bind, enter>

So *my* use case would be "bzr push-and-bind", or 'bzr make-public-checkout'.

On IRC, Jeff was saying he pushes to the public location for a while, before he decides it is easier to just use a checkout.

There is a different use case which is having a checkout, that you then unbind, and then re-bind when you come online, which --dirstate-tags does handle. But I think this is separate.

Revision history for this message
Krzysztof Kosinski (tweenk) wrote :

What about a new command 'bzr checkin X' that would work exactly like 'bzr push X && bzr bind X'?

Revision history for this message
Vincent Ladeuil (vila) wrote :

What's wrong with 'bzr bind :push' ?

Revision history for this message
Krzysztof Kosinski (tweenk) wrote :

"What's wrong with 'bzr bind :push' ?"
It's undocumented :)

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

I would like there to be an easier way to do this as well. I often do:

    bzr init-repo --no-trees /path/to/new_repo
    bzr push /path/to/new_repo/trunk
    bzr bind /path/to/new_repo/trunk

I'd really like this to be:

    bzr init-repo --no-trees /path/to/new_repo
    bzr push --bind /path/to/new_repo/trunk

I guess I could use:

    bzr init-repo --no-trees /path/to/new_repo
    bzr push /path/to/new_repo/trunk
    bzr bind :push

BUT, I know that if I use this method, one day I'll do 'bzr bind :push' on a subsequent push and it'll bind to an old location (as I probably won't have remembered to do --remember).

Revision history for this message
Jelmer Vernooij (jelmer) wrote :

Related to bug 482347, perhaps a dupe?

tags: added: bind
Revision history for this message
Sam Bull (dreamsorcerer) wrote :

This also affects me when working on Launchpad hosted projects. If I create a feature branch, I will always want to do a push and bind step, to upload it to Launchpad and then have it as a checkout.

Would be nice to have this as a single step. If it were handled by a single bzr command, it would also mean there would be no delay for the bind step, as it can set it up as a checkout as it pushes it to the server.

Jelmer Vernooij (jelmer)
tags: added: check-for-breezy
Jelmer Vernooij (jelmer)
tags: added: locations
removed: check-for-breezy
Changed in brz:
status: New → Triaged
importance: Undecided → Wishlist
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

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