~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/builtins.py

  • Committer: Martin Packman
  • Date: 2012-09-05 20:22:17 UTC
  • mfrom: (6437.63.6 2.5)
  • mto: This revision was merged to the branch mainline in revision 6558.
  • Revision ID: martin.packman@canonical.com-20120905202217-79io6livc1q0p66u
Merge 2.5 into bzr.dev

Show diffs side-by-side

added added

removed removed

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