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

  • Committer: Jelmer Vernooij
  • Date: 2017-05-21 18:10:28 UTC
  • mto: This revision was merged to the branch mainline in revision 6623.
  • Revision ID: jelmer@jelmer.uk-20170521181028-zn04pdfw0od9hfj3
Rename brzlib => breezy.

Show diffs side-by-side

added added

removed removed

Lines of Context:
41
41
import sys
42
42
import warnings
43
43
 
44
 
from brzlib import (
 
44
from breezy import (
45
45
    debug,
46
46
    errors,
47
47
    osutils,
48
48
    trace,
49
49
    )
50
 
from brzlib.hooks import Hooks
51
 
from brzlib.i18n import gettext
 
50
from breezy.hooks import Hooks
 
51
from breezy.i18n import gettext
52
52
 
53
53
class LockHooks(Hooks):
54
54
 
55
55
    def __init__(self):
56
 
        Hooks.__init__(self, "brzlib.lock", "Lock.hooks")
 
56
        Hooks.__init__(self, "breezy.lock", "Lock.hooks")
57
57
        self.add_hook('lock_acquired',
58
 
            "Called with a brzlib.lock.LockResult when a physical lock is "
 
58
            "Called with a breezy.lock.LockResult when a physical lock is "
59
59
            "acquired.", (1, 8))
60
60
        self.add_hook('lock_released',
61
 
            "Called with a brzlib.lock.LockResult when a physical lock is "
 
61
            "Called with a breezy.lock.LockResult when a physical lock is "
62
62
            "released.", (1, 8))
63
63
        self.add_hook('lock_broken',
64
 
            "Called with a brzlib.lock.LockResult when a physical lock is "
 
64
            "Called with a breezy.lock.LockResult when a physical lock is "
65
65
            "broken.", (1, 15))
66
66
 
67
67