/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 revspec.py

Fix locking.

Show diffs side-by-side

added added

removed removed

Lines of Context:
71
71
        raise InvalidRevisionSpec(self.user_spec, branch)
72
72
 
73
73
    def _history(self, branch, revid):
74
 
        history = list(branch.repository.iter_reverse_revision_history(revid))
 
74
        branch.lock_read()
 
75
        try:
 
76
            history = list(branch.repository.iter_reverse_revision_history(
 
77
                revid))
 
78
        finally:
 
79
            branch.unlock()
75
80
        history.reverse()
76
81
        return history
77
82