/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to bzrlib/branch.py

Deprecate LockableFiles.put_utf8 and put_bytes.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1406
1406
 
1407
1407
        This performs the actual writing to disk.
1408
1408
        It is intended to be called by BzrBranch5.set_revision_history."""
1409
 
        self.control_files.put_bytes(
1410
 
            'revision-history', '\n'.join(history))
 
1409
        self._transport.put_bytes(
 
1410
            'revision-history', '\n'.join(history),
 
1411
            mode=self.control_files._file_mode)
1411
1412
 
1412
1413
    @needs_write_lock
1413
1414
    def set_revision_history(self, rev_history):
1899
1900
        """
1900
1901
        assert revision_id is not None, "Use NULL_REVISION, not None"
1901
1902
        out_string = '%d %s\n' % (revno, revision_id)
1902
 
        self.control_files.put_bytes('last-revision', out_string)
 
1903
        self._transport.put_bytes('last-revision', out_string,
 
1904
            mode=self.control_files._file_mode)
1903
1905
 
1904
1906
    @needs_write_lock
1905
1907
    def set_last_revision_info(self, revno, revision_id):