/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: Aaron Bentley
  • Date: 2008-10-28 10:43:48 UTC
  • mfrom: (0.15.43 unshelve)
  • mto: (0.16.95 shelf-ui)
  • mto: This revision was merged to the branch mainline in revision 3820.
  • Revision ID: aaron@aaronbentley.com-20081028104348-buezeiob2p7xj6i1
merge unshelve into shelf-manager

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