~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/builtins.py

(gz) Merge 2.4 into 2.5 (Martin Packman)

Show diffs side-by-side

added added

removed removed

Lines of Context:
5114
5114
            Option('strict',
5115
5115
                   help='Produce a strict-format testament.')]
5116
5116
    takes_args = ['branch?']
 
5117
    encoding_type = 'exact'
5117
5118
    @display_command
5118
5119
    def run(self, branch=u'.', revision=None, long=False, strict=False):
5119
5120
        from bzrlib.testament import Testament, StrictTestament
5132
5133
            rev_id = revision[0].as_revision_id(b)
5133
5134
        t = testament_class.from_revision(b.repository, rev_id)
5134
5135
        if long:
5135
 
            sys.stdout.writelines(t.as_text_lines())
 
5136
            self.outf.writelines(t.as_text_lines())
5136
5137
        else:
5137
 
            sys.stdout.write(t.as_short_text())
 
5138
            self.outf.write(t.as_short_text())
5138
5139
 
5139
5140
 
5140
5141
class cmd_annotate(Command):