~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/branch.py

  • Committer: Robey Pointer
  • Date: 2006-09-08 18:52:17 UTC
  • mfrom: (1993 +trunk)
  • mto: This revision was merged to the branch mainline in revision 1996.
  • Revision ID: robey@lag.net-20060908185217-6a4406e1d41753f5
merge from bzr.dev

Show diffs side-by-side

added added

removed removed

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