~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/builtins.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2007-10-08 08:12:00 UTC
  • mfrom: (2858.2.5 remove-checks)
  • Revision ID: pqm@pqm.ubuntu.com-20071008081200-04a0byt5lo5tyft9
Remove old calls to safe_file_id and safe_revision_id (mbp)

Show diffs side-by-side

added added

removed removed

Lines of Context:
204
204
    
205
205
    @display_command
206
206
    def run(self, revision_id=None, revision=None):
207
 
 
208
 
        revision_id = osutils.safe_revision_id(revision_id, warn=False)
209
207
        if revision_id is not None and revision is not None:
210
208
            raise errors.BzrCommandError('You can only supply one of'
211
209
                                         ' revision_id or --revision')
216
214
 
217
215
        # TODO: jam 20060112 should cat-revision always output utf-8?
218
216
        if revision_id is not None:
 
217
            revision_id = osutils.safe_revision_id(revision_id, warn=False)
219
218
            self.outf.write(b.repository.get_revision_xml(revision_id).decode('utf-8'))
220
219
        elif revision is not None:
221
220
            for rev in revision: