Bazaars (bzr) predefined locations

Bazaar has a Launchpad (lp :) pseudo-protocol, which allows the user to work in remote branches without recording the full Launchpad location, I am looking for a way to create my own pseudo-protocols in a way like this (similar to GIT):

bzr remote my sftp://myuser@myserver.com/home/myuser/myrepo/
bzr push my:mybranch
bzr push my:otherbranch
bzr push my:anotherbranch

... instead of ...

bzr push sftp://myuser@myserver.com/home/myuser/myrepo/mybranch
bzr push sftp://myuser@myserver.com/home/myuser/myrepo/otherbranch
bzr push sftp://myuser@myserver.com/home/myuser/myrepo/anotherbranch

... it's a pain in the ass.

I read about bazaar.conf, but it seems that you can set global jerks for each branch / repo. Another way I've seen is to use an alias, but it has the same problem, very ugly when you need to create new branches.

Is it possible to do this without changing the BZR code? It should be obvious ...

+5
source share
2 answers

my: xxx directory services bzr. ( Python).

. .

, .

+8

- bzr-bookmark ~/.bazaar/plugins/bookmarks, :

bzr bookmark my sftp://myuser@myserver.com/home/myuser/myrepo/
bzr push bm:my/mybranch
bzr push bm:my/otherbranch
bzr push bm:my/anotherbranch
+7

All Articles