/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/repository.py

  • Committer: Robert Collins
  • Date: 2009-02-20 03:28:07 UTC
  • mto: This revision was merged to the branch mainline in revision 4023.
  • Revision ID: robertc@robertcollins.net-20090220032807-9ezo43wv9boso5id
Create a verb for Repository.set_make_working_trees.

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