Foreign Branches

Aaron Bentley aaron.bentley at utoronto.ca
Tue Oct 18 03:50:23 BST 2005


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

Martin Pool wrote:
> On 18/10/05, Gustavo Niemeyer <gustavo at niemeyer.net> wrote:
> 
>>One option would be to use prefixes, like svn at http://... and
>>svn at file://..., for instance.
> 
> 
> Or, to be consistent with svn, 'svn+http://'...
> 
> I guess you could probe it and discover what format is there.

Yeah, probing it would be very smooth.  What Jelmer and I were thinking
of was probing for each branch type, but permitting overrides if some
particular type was desired.

+        for bt in allowed_types:
+            assert issubclass(bt, Branch)
+            try:
+                return bt.open(base)
+            except NotBranchError:
+                pass

Aaron
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFDVGLv0F+nu1YWqI0RAg5DAJkBYJn336au5IyB98FGrdUx9lkSLQCgg2gL
0ok2FuJbzO0oBAk/KiYONfE=
=MRx7
-----END PGP SIGNATURE-----




More information about the bazaar mailing list