0.8 release plans

Robert Collins robertc at robertcollins.net
Fri Feb 10 00:06:23 GMT 2006


On Fri, 2006-02-10 at 10:57 +1100, Martin Pool wrote:

> So if someone would like to prepare a *testable* patch which handles
> both I'd be happy to bring it in for 0.8.

Oh, and the actual code change is roughly:

   @classmethod
    def find_format(klass, transport):
        """Return the format registered for URL."""
        try:
            format_string = transport.get(".bzr/branch-format").read()
-            return klass._formats[format_string]
        except errors.NoSuchFile:
-            raise errors.NotBranchError(path=transport.base)
+           try:
+                 format_string = \
transport.get("_bzr/branch-format").read()
+            except errors.NoSuchFile:
+                raise errors.NotBranchError(path=transport.base)
+        try:
+            return klass._formats[format_string]
        except KeyError:
            raise errors.UnknownFormatError(format_string)

Rob

-- 
GPG key available at: <http://www.robertcollins.net/keys.txt>.
> 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : https://lists.ubuntu.com/archives/bazaar/attachments/20060210/6a4c18e8/attachment.pgp 


More information about the bazaar mailing list