~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/foreign.py

  • Committer: Martin Pool
  • Date: 2010-02-25 06:17:27 UTC
  • mfrom: (5055 +trunk)
  • mto: This revision was merged to the branch mainline in revision 5057.
  • Revision ID: mbp@sourcefrog.net-20100225061727-4sd9lt0qmdc6087t
merge news

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# Copyright (C) 2008 Canonical Ltd
 
1
# Copyright (C) 2008, 2009, 2010 Canonical Ltd
2
2
#
3
3
# This program is free software; you can redistribute it and/or modify
4
4
# it under the terms of the GNU General Public License as published by
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_revision_xml(self, revision_id):
233
 
        """Return the XML representation of a revision.
234
 
 
235
 
        :param revision_id: Revision for which to return the XML.
236
 
        :return: XML string
237
 
        """
238
 
        return self._serializer.write_revision_to_string(
239
 
            self.get_revision(revision_id))
240
 
 
241
228
 
242
229
class ForeignBranch(Branch):
243
230
    """Branch that exists in a foreign version control system."""