2152
2152
self._ensure_real()
2153
2153
return self._real_repository._get_inventory_xml(revision_id)
2155
2156
def reconcile(self, other=None, thorough=False):
2157
return self._real_repository.reconcile(other=other, thorough=thorough)
2157
from bzrlib.reconcile import RepoReconciler
2158
path = self.bzrdir._path_for_remote_call(self._client)
2160
response, handler = self._call_expecting_body(
2161
'Repository.reconcile', path, self._lock_token)
2162
except (errors.UnknownSmartMethod, errors.TokenLockingNotSupported):
2164
return self._real_repository.reconcile(other=other, thorough=thorough)
2165
if response != ('ok', ):
2166
raise errors.UnexpectedSmartServerResponse(response)
2167
body = handler.read_body_bytes()
2168
result = RepoReconciler(self)
2169
for line in body.split('\n'):
2172
key, val_text = line.split(':')
2173
if key == "garbage_inventories":
2174
result.garbage_inventories = int(val_text)
2175
elif key == "inconsistent_parents":
2176
result.inconsistent_parents = int(val_text)
2178
mutter("unknown reconcile key %r" % key)
2159
2181
def all_revision_ids(self):
2160
2182
path = self.bzrdir._path_for_remote_call(self._client)
3928
3950
lambda err, find, get_path: errors.ReadError(get_path()))
3929
3951
error_translators.register('NoSuchFile',
3930
3952
lambda err, find, get_path: errors.NoSuchFile(get_path()))
3953
error_translators.register('TokenLockingNotSupported',
3954
lambda err, find, get_path: errors.TokenLockingNotSupported(
3955
find('repository')))
3931
3956
error_translators.register('UnsuspendableWriteGroup',
3932
3957
lambda err, find, get_path: errors.UnsuspendableWriteGroup(
3933
3958
repository=find('repository')))