Foreign Branches

Jelmer Vernooij jelmer at samba.org
Tue Oct 18 01:11:40 BST 2005


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi,

The past few days I've been looking at implementing support for
foreign branches (http://bazaar.canonical.com/BzrForeignBranches), in
particular with Subversion in mind.

I've put up a branch that includes support for registering custom
branch types at http://jelmer.vernstok.nl/bzr/foreignbranch; the diff
between this branch and bzr.dev is attached. This basically adds a
hook in the open() and open_containing() functions of the Branch class
so that it first tries to open a URL with the "native" bzr Branch
class and if that doesn't work (raises a NotBranchError) tries with
the other registered branch types (such as SvnBranch, CvsBranch,
BazBranch, etc).

Is the right approach? Would it make more sense if I merged the open()
and open_containing() function of _Branch into __init__() ? Please
comment.

Jelmer
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (GNU/Linux)

iD8DBQFDVD27Pa9Uoh7vUnYRAuh5AJ93pxc9zMYVjLh4AU+ytSFe4EqPFgCfWerU
ktd4pB65uPDklS4P/2nqK9s=
=3UH4
-----END PGP SIGNATURE-----

-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: foreign.diff
Url: https://lists.ubuntu.com/archives/bazaar/attachments/20051018/1bda20ec/attachment.diff 


More information about the bazaar mailing list