~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/builtins.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2008-06-26 00:42:45 UTC
  • mfrom: (3511.1.2 bzr.ab.integration)
  • Revision ID: pqm@pqm.ubuntu.com-20080626004245-dnw85so4xqg8r9hy
(bialix) Deprectate (Branch|Repository).print_file, fix cmd_cat

Show diffs side-by-side

added added

removed removed

Lines of Context:
2200
2200
                raise errors.BzrCommandError("%r is not present in revision %s"
2201
2201
                                                % (filename, revision_id))
2202
2202
            else:
2203
 
                rev_tree.print_file(old_file_id)
 
2203
                content = rev_tree.get_file_text(old_file_id)
2204
2204
        elif cur_file_id is not None:
2205
 
            rev_tree.print_file(cur_file_id)
 
2205
            content = rev_tree.get_file_text(cur_file_id)
2206
2206
        elif old_file_id is not None:
2207
 
            rev_tree.print_file(old_file_id)
 
2207
            content = rev_tree.get_file_text(old_file_id)
2208
2208
        else:
2209
2209
            raise errors.BzrCommandError("%r is not present in revision %s" %
2210
2210
                                         (filename, revision_id))
 
2211
        self.outf.write(content)
2211
2212
 
2212
2213
 
2213
2214
class cmd_local_time_offset(Command):