~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/smart/repository.py

  • Committer: Patch Queue Manager
  • Date: 2011-11-17 12:59:55 UTC
  • mfrom: (6263.2.3 hpss-make-workingtrees)
  • Revision ID: pqm@pqm.ubuntu.com-20111117125955-yjbz106l8gkzslos
(jelmer) Add HPSS call ``Repository.make_working_trees``. (Jelmer Vernooij)

Show diffs side-by-side

added added

removed removed

Lines of Context:
400
400
            return SuccessfulSmartServerResponse(('no', ))
401
401
 
402
402
 
 
403
class SmartServerRepositoryMakeWorkingTrees(SmartServerRepositoryRequest):
 
404
 
 
405
    def do_repository_request(self, repository):
 
406
        """Return the result of repository.make_working_trees().
 
407
 
 
408
        Introduced in bzr 2.5.0.
 
409
 
 
410
        :param repository: The repository to query in.
 
411
        :return: A smart server response of ('yes', ) if the repository uses
 
412
            working trees, and ('no', ) if it is not.
 
413
        """
 
414
        if repository.make_working_trees():
 
415
            return SuccessfulSmartServerResponse(('yes', ))
 
416
        else:
 
417
            return SuccessfulSmartServerResponse(('no', ))
 
418
 
 
419
 
403
420
class SmartServerRepositoryLockWrite(SmartServerRepositoryRequest):
404
421
 
405
422
    def do_repository_request(self, repository, token=''):