~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/smart/repository.py

  • Committer: Jelmer Vernooij
  • Date: 2011-11-19 18:22:58 UTC
  • mto: (6280.7.14 hpss-write-group)
  • mto: This revision was merged to the branch mainline in revision 6300.
  • Revision ID: jelmer@samba.org-20111119182258-tauzyi56rmgrakyf
Add HPSS calls Repository.get_physical_lock_status and Branch.get_physical_lock_status.

Show diffs side-by-side

added added

removed removed

Lines of Context:
726
726
        return SuccessfulSmartServerResponse(('ok',))
727
727
 
728
728
 
 
729
class SmartServerRepositoryGetPhysicalLockStatus(SmartServerRepositoryRequest):
 
730
    """Get the physical lock status for a repository.
 
731
 
 
732
    New in 2.5.
 
733
    """
 
734
 
 
735
    def do_repository_request(self, repository):
 
736
        if repository.get_physical_lock_status():
 
737
            return SuccessfulSmartServerResponse(('yes', ))
 
738
        else:
 
739
            return SuccessfulSmartServerResponse(('no', ))
 
740
 
 
741
 
729
742
class SmartServerRepositorySetMakeWorkingTrees(SmartServerRepositoryRequest):
730
743
 
731
744
    def do_repository_request(self, repository, str_bool_new_value):