~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/remote.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:
1194
1194
        return self._real_repository.revisions
1195
1195
 
1196
1196
    def set_make_working_trees(self, new_value):
1197
 
        self._ensure_real()
1198
 
        self._real_repository.set_make_working_trees(new_value)
 
1197
        if new_value:
 
1198
            new_value_str = "True"
 
1199
        else:
 
1200
            new_value_str = "False"
 
1201
        path = self.bzrdir._path_for_remote_call(self._client)
 
1202
        try:
 
1203
            response = self._call(
 
1204
                'Repository.set_make_working_trees', path, new_value_str)
 
1205
        except errors.UnknownSmartMethod:
 
1206
            self._ensure_real()
 
1207
            self._real_repository.set_make_working_trees(new_value)
 
1208
        else:
 
1209
            if response[0] != 'ok':
 
1210
                raise errors.UnexpectedSmartServerResponse(response)
1199
1211
 
1200
1212
    @property
1201
1213
    def signatures(self):