~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/smart/bzrdir.py

  • Committer: Robert J. Tanner
  • Date: 2009-04-20 08:37:32 UTC
  • mfrom: (4299 +trunk)
  • mto: This revision was merged to the branch mainline in revision 4300.
  • Revision ID: tanner@real-time.com-20090420083732-bzx919oo7wpmqc2u
[merge] 1.14rc2 back into bzr.dev (Bob Tanner)

Show diffs side-by-side

added added

removed removed

Lines of Context:
297
297
            return FailedSmartServerResponse(('norepository', ))
298
298
 
299
299
 
 
300
class SmartServerBzrDirRequestConfigFile(SmartServerRequestBzrDir):
 
301
 
 
302
    def do_bzrdir_request(self):
 
303
        """Get the configuration bytes for a config file in bzrdir.
 
304
        
 
305
        The body is not utf8 decoded - it is the literal bytestream from disk.
 
306
        """
 
307
        config = self._bzrdir._get_config()
 
308
        if config is None:
 
309
            content = ''
 
310
        else:
 
311
            content = config._get_config_file().read()
 
312
        return SuccessfulSmartServerResponse((), content)
 
313
 
 
314
 
300
315
class SmartServerRequestInitializeBzrDir(SmartServerRequest):
301
316
 
302
317
    def do(self, path):