~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/branch.py

  • Committer: John Arbash Meinel
  • Date: 2006-09-05 20:08:52 UTC
  • mto: (1946.2.8 reduce-knit-churn)
  • mto: This revision was merged to the branch mainline in revision 1988.
  • Revision ID: john@arbash-meinel.com-20060905200852-067430c9209fea7f
Find more occurrances of put() and replace with put_file or put_bytes

Show diffs side-by-side

added added

removed removed

Lines of Context:
840
840
        mutter('creating branch reference in %s', a_bzrdir.transport.base)
841
841
        branch_transport = a_bzrdir.get_branch_transport(self)
842
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()))
 
843
        branch_transport.put_bytes('location',
 
844
            str(target_branch.bzrdir.root_transport.base))
 
845
        branch_transport.put_bytes('format', self.get_format_string())
845
846
        return self.open(a_bzrdir, _found=True)
846
847
 
847
848
    def __init__(self):