~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/branch.py

Merge bzr.dev.

Show diffs side-by-side

added added

removed removed

Lines of Context:
839
839
            raise errors.UninitializableFormat(self)
840
840
        mutter('creating branch reference in %s', a_bzrdir.transport.base)
841
841
        branch_transport = a_bzrdir.get_branch_transport(self)
842
 
        # FIXME rbc 20060209 one j-a-ms encoding branch lands this str() cast is not needed.
843
 
        branch_transport.put('location', StringIO(str(target_branch.bzrdir.root_transport.base)))
844
 
        branch_transport.put('format', StringIO(self.get_format_string()))
 
842
        branch_transport.put_bytes('location',
 
843
            target_branch.bzrdir.root_transport.base)
 
844
        branch_transport.put_bytes('format', self.get_format_string())
845
845
        return self.open(a_bzrdir, _found=True)
846
846
 
847
847
    def __init__(self):