Define redirect like lp:myproject?

Asked by moadin

Hi there,

is it possible to define a own redirect-rule like the "lp:" used for launchpad?
E.g. I would like to define my server as svr and get access to the projects via svr:my1st, svr:my2nd and so on.

Thanks for help

moadin

Question information

Language:
English Edit question
Status:
Solved
For:
Bazaar Edit question
Assignee:
No assignee Edit question
Solved by:
moadin
Solved:
Last query:
Last reply:
Revision history for this message
John A Meinel (jameinel) said :
#1

At the moment, you can register a Transport and have it proxy the same way the lp: transport does.
In the next release of bzr (1.3) we will make it clearer about having a "directory service" which is more clearly defined as a mapping from "lp:foo" to a full url. Which should make implementing your own easier.

In both cases you would need to write a python plugin. If you need help, you can certainly find us on IRC or on the mailing list.

Revision history for this message
Elliot Murphy (statik) said :
#2

Or you can use the bzr bookmark plugin, which adds two commands, bookmark and bookmarks. This lets you easily add abbreviations for frequently used locations. The plugin is here:
http://bazaar.launchpad.net/~luks/+junk/bzr-bookmarks/

Revision history for this message
moadin (moadin) said :
#3

Thanks for your answers.
A directory service with mapping would be a great feature.
I will also try the bookmark plugin!

I like the "lp:" style instead of long URLs to remember...

Revision history for this message
moadin (moadin) said :
#4

I installed the bookmarks plugin. It works fine and is easy to maintain! Thanks for the tip!