/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to foreign/__init__.py

Merge new dulwich.

Show diffs side-by-side

added added

removed removed

Lines of Context:
49
49
        :param source: Source branch
50
50
        :param stop_revision: Revision to pull, defaults to last revision.
51
51
        """
52
 
        raise NotImplementedError(self.dpull)
 
52
        raise NotImplementedError(self.pull)
 
53
 
 
54
 
 
55
class ForeignRepository(Repository):
 
56
 
 
57
    def has_foreign_revision(self, foreign_revid):
 
58
        raise NotImplementedError(self.has_foreign_revision)
 
59
 
 
60
    def all_revision_ids(self, mapping=None):
 
61
        raise NotImplementedError(self.all_revision_ids)
 
62
 
 
63
    def get_mapping(self):
 
64
        raise NotImplementedError(self.get_mapping)
 
65
 
 
66
    def get_inventory_xml(self, revision_id):
 
67
        """See Repository.get_inventory_xml()."""
 
68
        return self.serialise_inventory(self.get_inventory(revision_id))
 
69
 
 
70
    def get_inventory_sha1(self, revision_id):
 
71
        """Get the sha1 for the XML representation of an inventory.
 
72
 
 
73
        :param revision_id: Revision id of the inventory for which to return 
 
74
         the SHA1.
 
75
        :return: XML string
 
76
        """
 
77
 
 
78
        return osutils.sha_string(self.get_inventory_xml(revision_id))
 
79
 
 
80
    def get_revision_xml(self, revision_id):
 
81
        """Return the XML representation of a revision.
 
82
 
 
83
        :param revision_id: Revision for which to return the XML.
 
84
        :return: XML string
 
85
        """
 
86
        return self._serializer.write_revision_to_string(self.get_revision(revision_id))
 
87
 
53
88
 
54
89
 
55
90
class FakeControlFiles(object):