~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/foreign.py

  • Committer: Robert Collins
  • Date: 2010-04-08 04:34:03 UTC
  • mfrom: (5138 +trunk)
  • mto: This revision was merged to the branch mainline in revision 5139.
  • Revision ID: robertc@robertcollins.net-20100408043403-56z0d07vdqrx7f3t
Update bugfix for 528114 to trunk.

Show diffs side-by-side

added added

removed removed

Lines of Context:
225
225
        """Get the default mapping for this repository."""
226
226
        raise NotImplementedError(self.get_default_mapping)
227
227
 
228
 
    def get_inventory_xml(self, revision_id):
229
 
        """See Repository.get_inventory_xml()."""
230
 
        return self.serialise_inventory(self.get_inventory(revision_id))
231
 
 
232
 
    def get_inventory_sha1(self, revision_id):
233
 
        """Get the sha1 for the XML representation of an inventory.
234
 
 
235
 
        :param revision_id: Revision id of the inventory for which to return
236
 
         the SHA1.
237
 
        :return: XML string
238
 
        """
239
 
 
240
 
        return osutils.sha_string(self.get_inventory_xml(revision_id))
241
 
 
242
 
    def get_revision_xml(self, revision_id):
243
 
        """Return the XML representation of a revision.
244
 
 
245
 
        :param revision_id: Revision for which to return the XML.
246
 
        :return: XML string
247
 
        """
248
 
        return self._serializer.write_revision_to_string(
249
 
            self.get_revision(revision_id))
250
 
 
251
228
 
252
229
class ForeignBranch(Branch):
253
230
    """Branch that exists in a foreign version control system."""