~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/branch.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2006-09-06 16:21:16 UTC
  • mfrom: (1955.3.30 transport_bytes)
  • Revision ID: pqm@pqm.ubuntu.com-20060906162116-90b02cf97bcc11e8
(jam) create Transport.*_{file,bytes}

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):