/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to bzrlib/builtins.py

  • Committer: Martin Pool
  • Date: 2007-09-25 08:14:12 UTC
  • mto: This revision was merged to the branch mainline in revision 2895.
  • Revision ID: mbp@sourcefrog.net-20070925081412-ta60zj5qxfuokev3
Remove most calls to safe_file_id and safe_revision_id.

The deprecation period for passing unicode objects as revision ids is now over.

Show diffs side-by-side

added added

removed removed

Lines of Context:
211
211
    
212
212
    @display_command
213
213
    def run(self, revision_id=None, revision=None):
214
 
 
215
 
        revision_id = osutils.safe_revision_id(revision_id, warn=False)
216
214
        if revision_id is not None and revision is not None:
217
215
            raise errors.BzrCommandError('You can only supply one of'
218
216
                                         ' revision_id or --revision')
223
221
 
224
222
        # TODO: jam 20060112 should cat-revision always output utf-8?
225
223
        if revision_id is not None:
 
224
            revision_id = osutils.safe_revision_id(revision_id, warn=False)
226
225
            self.outf.write(b.repository.get_revision_xml(revision_id).decode('utf-8'))
227
226
        elif revision is not None:
228
227
            for rev in revision: