Cool Launchpad/Bazaar hack
If you push a lot of Bazaar branches to Launchpad, you might want to add something like this to your .bazaar/locations.conf:
[/home/jml/Code]Once it's there, 'bzr push' will Just Work... as long as you want it to do something like:
public_branch = lp:~jml
public_branch:policy = appendpath
push_location = lp:~jml
push_location:policy = appendpath
jml@rhino:~$ cd ~/Code/pyunit3k/trunkSo if I've got a branch in
jml@rhino:~/Code/pyunit3k/trunk$ bzr push
Using saved location: lp:~jml/pyunit3k/trunk
No new revisions to push.
~/Code/<project-name>/<branch-name>, it'll be published at https://launchpad.net/~jml/<project-name>/<branch-name>. This is only a default, of course: you can override it for a given branch by doing:bzr push --remember <new_location>Or you can override it for a bunch of branches by hacking locations.conf.
Neat huh?


1 Comments:
Actually, I'd expect that push --remember does nothing if you already have a setting in locations.conf.
Post a Comment
<< Home