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

  • Committer: Andrew Bennetts
  • Date: 2009-09-30 07:02:41 UTC
  • mto: This revision was merged to the branch mainline in revision 4732.
  • Revision ID: andrew.bennetts@canonical.com-20090930070241-vs0llpnqoyfvzqyi
Cherrypick only_raises decorator experiment from cleanup-hof branch.

Show diffs side-by-side

added added

removed removed

Lines of Context:
46
46
    )
47
47
""")
48
48
 
49
 
from bzrlib.decorators import needs_read_lock, needs_write_lock
 
49
from bzrlib.decorators import needs_read_lock, needs_write_lock, only_raises
50
50
from bzrlib.hooks import HookPoint, Hooks
51
51
from bzrlib.inter import InterObject
52
52
from bzrlib import registry
2160
2160
                self.repository.unlock()
2161
2161
            raise
2162
2162
 
 
2163
    @only_raises(errors.LockNotHeld, errors.LockBroken)
2163
2164
    def unlock(self):
2164
2165
        try:
2165
2166
            self.control_files.unlock()