~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/builtins.py

(jelmer) Fix bug #1010339,
 use encoding_type='exact' for bzr testament (John A Meinel)

Show diffs side-by-side

added added

removed removed

Lines of Context:
4718
4718
            Option('strict',
4719
4719
                   help='Produce a strict-format testament.')]
4720
4720
    takes_args = ['branch?']
 
4721
    encoding_type = 'exact'
4721
4722
    @display_command
4722
4723
    def run(self, branch=u'.', revision=None, long=False, strict=False):
4723
4724
        from bzrlib.testament import Testament, StrictTestament
4736
4737
            rev_id = revision[0].as_revision_id(b)
4737
4738
        t = testament_class.from_revision(b.repository, rev_id)
4738
4739
        if long:
4739
 
            sys.stdout.writelines(t.as_text_lines())
 
4740
            self.outf.writelines(t.as_text_lines())
4740
4741
        else:
4741
 
            sys.stdout.write(t.as_short_text())
 
4742
            self.outf.write(t.as_short_text())
4742
4743
 
4743
4744
 
4744
4745
class cmd_annotate(Command):