~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/repository.py

  • Committer: Robert Collins
  • Date: 2006-01-25 01:43:34 UTC
  • mto: (1534.1.15 integration)
  • mto: This revision was merged to the branch mainline in revision 1550.
  • Revision ID: robertc@robertcollins.net-20060125014334-8dd9ed73c26c5956
Implement final review suggestions.

Show diffs side-by-side

added added

removed removed

Lines of Context:
242
242
 
243
243
    @needs_read_lock
244
244
    def print_file(self, file, revision_id):
245
 
        """Print `file` to stdout."""
 
245
        """Print `file` to stdout.
 
246
        
 
247
        FIXME RBC 20060125 as John Meinel points out this is a bad api
 
248
        - it writes to stdout, it assumes that that is valid etc. Fix
 
249
        by creating a new more flexible convenience function.
 
250
        """
246
251
        tree = self.revision_tree(revision_id)
247
252
        # use inventory as it was in that revision
248
253
        file_id = tree.inventory.path2id(file)