~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/smart/repository.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2009-02-20 04:15:09 UTC
  • mfrom: (4017.3.5 integration)
  • Revision ID: pqm@pqm.ubuntu.com-20090220041509-nyuby6mehjjuaycj
(robertc) Reduce the number of round trips required for initial push
        over a smart server by adding verbs for Repository
        initialization and set_make_working_trees. (Robert Collins)

Show diffs side-by-side

added added

removed removed

Lines of Context:
336
336
        return SuccessfulSmartServerResponse(('ok',))
337
337
 
338
338
 
 
339
class SmartServerRepositorySetMakeWorkingTrees(SmartServerRepositoryRequest):
 
340
 
 
341
    def do_repository_request(self, repository, str_bool_new_value):
 
342
        if str_bool_new_value == 'True':
 
343
            new_value = True
 
344
        else:
 
345
            new_value = False
 
346
        repository.set_make_working_trees(new_value)
 
347
        return SuccessfulSmartServerResponse(('ok',))
 
348
 
 
349
 
339
350
class SmartServerRepositoryTarball(SmartServerRepositoryRequest):
340
351
    """Get the raw repository files as a tarball.
341
352