/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 __init__.py

  • Committer: Jelmer Vernooij
  • Date: 2008-12-26 13:43:41 UTC
  • mto: (0.205.39 trunk)
  • mto: This revision was merged to the branch mainline in revision 6960.
  • Revision ID: jelmer@samba.org-20081226134341-lfqr3eo6hyv9v8oy
Remove ForeignRepository class now in bzr.dev

Show diffs side-by-side

added added

removed removed

Lines of Context:
52
52
        raise NotImplementedError(self.dpull)
53
53
 
54
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
 
 
88
 
 
89
 
 
90
55
class FakeControlFiles(object):
91
56
    """Dummy implementation of ControlFiles.
92
57