/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 bzrlib/workingtree.py

  • Committer: Andrew Bennetts
  • Date: 2008-10-29 01:19:46 UTC
  • mfrom: (3786.3.3 Unify error decoding)
  • mto: This revision was merged to the branch mainline in revision 3807.
  • Revision ID: andrew.bennetts@canonical.com-20081029011946-m408t8eco1klvoio
Merge loom thread (includes latest bzr.dev and new tests in bt.test_remote).

Show diffs side-by-side

added added

removed removed

Lines of Context:
433
433
        file_obj = self.get_file_byname(path)
434
434
        return (file_obj, _fstat(file_obj.fileno()))
435
435
 
436
 
    def get_file_text(self, file_id):
437
 
        return self.get_file(file_id).read()
438
 
 
439
436
    def get_file_byname(self, filename):
440
437
        return file(self.abspath(filename), 'rb')
441
438
 
 
439
    def get_file_lines(self, file_id, path=None):
 
440
        """See Tree.get_file_lines()"""
 
441
        file = self.get_file(file_id, path)
 
442
        try:
 
443
            return file.readlines()
 
444
        finally:
 
445
            file.close()
 
446
 
442
447
    @needs_read_lock
443
448
    def annotate_iter(self, file_id, default_revision=CURRENT_REVISION):
444
449
        """See Tree.annotate_iter