/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 breezy/builtins.py

Print proper error when running `brz cat-revision` on Git repositories.

Merged from https://code.launchpad.net/~jelmer/brz/cat-revision-git/+merge/363694

Show diffs side-by-side

added added

removed removed

Lines of Context:
454
454
 
455
455
        b = controldir.ControlDir.open_containing_tree_or_branch(directory)[1]
456
456
 
457
 
        revisions = b.repository.revisions
 
457
        revisions = getattr(b.repository, "revisions", None)
458
458
        if revisions is None:
459
459
            raise errors.BzrCommandError(
460
460
                gettext('Repository %r does not support '
461
 
                        'access to raw revision texts'))
 
461
                        'access to raw revision texts') % b.repository)
462
462
 
463
463
        with b.repository.lock_read():
464
464
            # TODO: jam 20060112 should cat-revision always output utf-8?