~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/smart/branch.py

Deprecate LockableFiles.get

Show diffs side-by-side

added added

removed removed

Lines of Context:
76
76
class SmartServerBranchGetConfigFile(SmartServerBranchRequest):
77
77
    
78
78
    def do_with_branch(self, branch):
79
 
        """Return the content of branch.control_files.get('branch.conf').
 
79
        """Return the content of branch.conf
80
80
        
81
81
        The body is not utf8 decoded - its the literal bytestream from disk.
82
82
        """
83
83
        try:
84
 
            content = branch.control_files.get('branch.conf').read()
 
84
            content = branch.control_files._transport.get_bytes('branch.conf')
85
85
        except errors.NoSuchFile:
86
86
            content = ''
87
87
        return SuccessfulSmartServerResponse( ('ok', ), content)