14
14
# along with this program; if not, write to the Free Software
15
15
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
17
23
from bzrlib import registry
19
25
class DirectoryServiceRegistry(registry.Registry):
21
36
def dereference(self, url):
22
37
"""Dereference a supplied URL if possible.
24
39
URLs that match a registered directory service prefix are looked up in
25
40
it. Non-matching urls are returned verbatim.
26
45
:param url: The URL to dereference
27
46
:return: The dereferenced URL if applicable, the input URL otherwise.