~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/transform.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2008-10-28 09:48:31 UTC
  • mfrom: (3774.1.4 tree-api-updates)
  • Revision ID: pqm@pqm.ubuntu.com-20081028094831-81he4yysmaobxb41
Make get_file_text and get_file_lines official (abentley)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1777
1777
        name = self._transform._limbo_name(trans_id)
1778
1778
        return open(name, 'rb')
1779
1779
 
1780
 
    def get_file_text(self, file_id):
1781
 
        text_file = self.get_file(file_id)
1782
 
        try:
1783
 
            return text_file.read()
1784
 
        finally:
1785
 
            text_file.close()
1786
 
 
1787
1780
    def annotate_iter(self, file_id,
1788
1781
                      default_revision=_mod_revision.CURRENT_REVISION):
1789
1782
        changes = self._changes(file_id)