/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

Use new context stuff.

Show diffs side-by-side

added added

removed removed

Lines of Context:
458
458
            raise errors.BzrCommandError(gettext('Repository %r does not support '
459
459
                'access to raw revision texts'))
460
460
 
461
 
        b.repository.lock_read()
462
 
        try:
 
461
        with b.repository.lock_read():
463
462
            # TODO: jam 20060112 should cat-revision always output utf-8?
464
463
            if revision_id is not None:
465
464
                revision_id = cache_utf8.encode(revision_id)
476
475
                            gettext('You cannot specify a NULL revision.'))
477
476
                    rev_id = rev.as_revision_id(b)
478
477
                    self.print_revision(revisions, rev_id)
479
 
        finally:
480
 
            b.repository.unlock()
481
 
        
 
478
 
482
479
 
483
480
class cmd_dump_btree(Command):
484
481
    __doc__ = """Dump the contents of a btree index file to stdout.