~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/builtins.py

  • Committer: Patch Queue Manager
  • Date: 2012-09-05 20:52:26 UTC
  • mfrom: (6549.3.1 dev_2.5_integration)
  • Revision ID: pqm@pqm.ubuntu.com-20120905205226-8s3bzolvduug3ifj
(gz) Merge 2.5 (Martin Packman)

Show diffs side-by-side

added added

removed removed

Lines of Context:
5140
5140
            Option('strict',
5141
5141
                   help='Produce a strict-format testament.')]
5142
5142
    takes_args = ['branch?']
 
5143
    encoding_type = 'exact'
5143
5144
    @display_command
5144
5145
    def run(self, branch=u'.', revision=None, long=False, strict=False):
5145
5146
        from bzrlib.testament import Testament, StrictTestament
5158
5159
            rev_id = revision[0].as_revision_id(b)
5159
5160
        t = testament_class.from_revision(b.repository, rev_id)
5160
5161
        if long:
5161
 
            sys.stdout.writelines(t.as_text_lines())
 
5162
            self.outf.writelines(t.as_text_lines())
5162
5163
        else:
5163
 
            sys.stdout.write(t.as_short_text())
 
5164
            self.outf.write(t.as_short_text())
5164
5165
 
5165
5166
 
5166
5167
class cmd_annotate(Command):