~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/repository.py

  • Committer: Jelmer Vernooij
  • Date: 2010-02-15 20:23:34 UTC
  • mto: This revision was merged to the branch mainline in revision 5042.
  • Revision ID: jelmer@samba.org-20100215202334-fbhg2hk7yj9e3281
Repository.get_revision_xml() has been removed.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1901
1901
                rev = self._serializer.read_revision_from_string(text)
1902
1902
                yield (revid, rev)
1903
1903
 
1904
 
    @needs_read_lock
1905
 
    def get_revision_xml(self, revision_id):
1906
 
        # TODO: jam 20070210 This shouldn't be necessary since get_revision
1907
 
        #       would have already do it.
1908
 
        # TODO: jam 20070210 Just use _serializer.write_revision_to_string()
1909
 
        # TODO: this can't just be replaced by:
1910
 
        # return self._serializer.write_revision_to_string(
1911
 
        #     self.get_revision(revision_id))
1912
 
        # as cStringIO preservers the encoding unlike write_revision_to_string
1913
 
        # or some other call down the path.
1914
 
        rev = self.get_revision(revision_id)
1915
 
        rev_tmp = cStringIO.StringIO()
1916
 
        # the current serializer..
1917
 
        self._serializer.write_revision(rev, rev_tmp)
1918
 
        rev_tmp.seek(0)
1919
 
        return rev_tmp.getvalue()
1920
 
 
1921
1904
    def get_deltas_for_revisions(self, revisions, specific_fileids=None):
1922
1905
        """Produce a generator of revision deltas.
1923
1906