~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/builtins.py

[merge] jelmer

Show diffs side-by-side

added added

removed removed

Lines of Context:
149
149
            raise BzrCommandError('You must supply either --revision or a revision_id')
150
150
        b = Branch.open_containing('.')[0]
151
151
        if revision_id is not None:
152
 
            sys.stdout.write(b.get_revision_xml_file(revision_id).read())
 
152
            sys.stdout.write(b.get_revision_xml(revision_id))
153
153
        elif revision is not None:
154
154
            for rev in revision:
155
155
                if rev is None:
156
156
                    raise BzrCommandError('You cannot specify a NULL revision.')
157
157
                revno, rev_id = rev.in_history(b)
158
 
                sys.stdout.write(b.get_revision_xml_file(rev_id).read())
 
158
                sys.stdout.write(b.get_revision_xml(rev_id))
159
159
    
160
160
 
161
161
class cmd_revno(Command):