1010
1010
:param suppress_errors: see Repository.abort_write_group.
1013
return self._real_repository.abort_write_group(
1014
suppress_errors=suppress_errors)
1012
path = self.bzrdir._path_for_remote_call(self._client)
1014
response = self._call('Repository.abort_write_group', path,
1016
except errors.UnknownSmartMethod:
1018
return self._real_repository.abort_write_group(
1019
suppress_errors=suppress_errors)
1020
if response != ('ok', ):
1021
raise errors.UnexpectedSmartServerResponse(response)
1017
1024
def chk_bytes(self):
1031
1038
for older plugins that don't use e.g. the CommitBuilder
1035
return self._real_repository.commit_write_group()
1041
path = self.bzrdir._path_for_remote_call(self._client)
1043
response = self._call('Repository.commit_write_group', path)
1044
except errors.UnknownSmartMethod:
1046
return self._real_repository.commit_write_group()
1047
if response != ('ok', ):
1048
raise errors.UnexpectedSmartServerResponse(response)
1037
1050
def resume_write_group(self, tokens):
1039
return self._real_repository.resume_write_group(tokens)
1051
path = self.bzrdir._path_for_remote_call(self._client)
1053
response = self._call('Repository.resume_write_group', path,
1055
except errors.UnknownSmartMethod:
1057
return self._real_repository.resume_write_group(tokens)
1058
if response != ('ok', ):
1059
raise errors.UnexpectedSmartServerResponse(response)
1041
1061
def suspend_write_group(self):
1043
return self._real_repository.suspend_write_group()
1062
path = self.bzrdir._path_for_remote_call(self._client)
1064
response = self._call('Repository.suspend_write_group',
1066
except errors.UnknownSmartMethod:
1068
return self._real_repository.suspend_write_group()
1069
if response[0] != 'ok':
1070
raise errors.UnexpectedSmartServerResponse(response)
1071
return list(response[1:])
1045
1073
def get_missing_parent_inventories(self, check_for_missing_texts=True):
1046
1074
self._ensure_real()
1414
1442
for older plugins that don't use e.g. the CommitBuilder
1418
return self._real_repository.start_write_group()
1445
path = self.bzrdir._path_for_remote_call(self._client)
1447
response = self._call('Repository.start_write_group', path)
1448
except errors.UnknownSmartMethod:
1450
return self._real_repository.start_write_group()
1451
if response != ('ok', ):
1452
raise errors.UnexpectedSmartServerResponse(response)
1420
1454
def _unlock(self, token):
1421
1455
path = self.bzrdir._path_for_remote_call(self._client)