Neat trick
In Argentina I hacked up a little command for the 'launchpad' Bazaar plugin. It's a command line tool to open the Launchpad page for your branch in your web browser.
$ cd ~/src/testresources/expose-reset-bug-271619... and it works!
$ bzr lp-open
Opening https://code.edge.launchpad.net/~jml/testresources/expose-reset-bug-271619 in web browser
Available in Bazaar 1.12. Due to an unfortunate oversight, the NEWS file doesn't mention it.

7 Comments:
Don't seem to work with local branches pushed (with --remember) to launchpad.
$ bzr lp-open
bzr: ERROR: There is no public branch set for ...
Good point!
At the moment works based on the public location, which is different from the push location. I guess the push location could be used as a fallback.
https://bugs.edge.launchpad.net/bzr/+bug/332372
$ bzr lp-open lp:qbzr
bzr: ERROR: There is no public branch set for "bzr+ssh://bazaar.launchpad.net/~qbzr-dev/qbzr/trunk/".
Your neat trick is a bit useless without public branch. Why I should have public branch for lp:qbzr branch anyway?
bialix, the main use case for this was to open the pages of branches that you already have locally. The command you type ought to work though.
Do you know why having public branches set is useful in general?
IIRC, public branch settings used only by `bzr send` command, and maybe by pqm plugin (I'm not sure).
Your command just unclear in what it ought to do and why for it designed. So...
There's a fix for the issues here in the Bazaar review queue: http://bundlebuggy.aaronbentley.com.
Post a Comment
<< Home