/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/smart/branch.py

Update to bzr.dev.

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
        """
86
86
        # allow the client to get the configuration without needing vfs
87
87
        # access.
88
88
        try:
89
 
            content = branch.control_files.get('branch.conf').read()
 
89
            content = branch._transport.get_bytes('branch.conf')
90
90
        except errors.NoSuchFile:
91
91
            content = ''
92
92
        return SuccessfulSmartServerResponse( ('ok', ), content)