~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/branch.py

Fixed cat command

Show diffs side-by-side

added added

removed removed

Lines of Context:
441
441
    @needs_read_lock
442
442
    def print_file(self, file, revno):
443
443
        """Print `file` to stdout."""
444
 
        tree = self.revision_tree(self.get_rev_id(revno))
445
 
        # use inventory as it was in that revision
446
 
        file_id = tree.inventory.path2id(file)
447
 
        if not file_id:
448
 
            raise BzrError("%r is not present in revision %s" % (file, revno))
449
 
        tree.print_file(file_id)
 
444
        return self.storage.print_file(file, self.get_rev_id(revno))
450
445
 
451
446
    def unknowns(self):
452
447
        """Return all unknown files.