Rev 4858: Read the repository format file via get_bytes in http://bazaar.launchpad.net/~jameinel/bzr/2.1.0b4-close-file-handles

John Arbash Meinel john at arbash-meinel.com
Wed Dec 2 18:05:15 GMT 2009


At http://bazaar.launchpad.net/~jameinel/bzr/2.1.0b4-close-file-handles

------------------------------------------------------------
revno: 4858
revision-id: john at arbash-meinel.com-20091202180508-5ivma09qogs2wg1c
parent: john at arbash-meinel.com-20091202175915-me81n1ovkuml4ake
committer: John Arbash Meinel <john at arbash-meinel.com>
branch nick: 2.1.0b4-close-file-handles
timestamp: Wed 2009-12-02 12:05:08 -0600
message:
  Read the repository format file via get_bytes
-------------- next part --------------
=== modified file 'bzrlib/repository.py'
--- a/bzrlib/repository.py	2009-11-30 03:34:09 +0000
+++ b/bzrlib/repository.py	2009-12-02 18:05:08 +0000
@@ -3094,7 +3094,7 @@
         """
         try:
             transport = a_bzrdir.get_repository_transport(None)
-            format_string = transport.get("format").read()
+            format_string = transport.get_bytes("format")
             return format_registry.get(format_string)
         except errors.NoSuchFile:
             raise errors.NoRepositoryPresent(a_bzrdir)



More information about the bazaar-commits mailing list