49
49
:param source: Source branch
50
50
:param stop_revision: Revision to pull, defaults to last revision.
52
raise NotImplementedError(self.pull)
55
class ForeignRepository(Repository):
57
def has_foreign_revision(self, foreign_revid):
58
raise NotImplementedError(self.has_foreign_revision)
60
def all_revision_ids(self, mapping=None):
61
raise NotImplementedError(self.all_revision_ids)
63
def get_mapping(self):
64
raise NotImplementedError(self.get_mapping)
66
def get_inventory_xml(self, revision_id):
67
"""See Repository.get_inventory_xml()."""
68
return self.serialise_inventory(self.get_inventory(revision_id))
70
def get_inventory_sha1(self, revision_id):
71
"""Get the sha1 for the XML representation of an inventory.
73
:param revision_id: Revision id of the inventory for which to return
78
return osutils.sha_string(self.get_inventory_xml(revision_id))
80
def get_revision_xml(self, revision_id):
81
"""Return the XML representation of a revision.
83
:param revision_id: Revision for which to return the XML.
86
return self._serializer.write_revision_to_string(self.get_revision(revision_id))
52
raise NotImplementedError(self.dpull)
90
55
class FakeControlFiles(object):