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

Merge in Pyrex RIO implementation.

Show diffs side-by-side

added added

removed removed

Lines of Context:
55
55
        self.create_hook(HookPoint('lock_released',
56
56
            "Called with a bzrlib.lock.LockResult when a physical lock is "
57
57
            "released.", (1, 8), None))
 
58
        self.create_hook(HookPoint('lock_broken',
 
59
            "Called with a bzrlib.lock.LockResult when a physical lock is "
 
60
            "broken.", (1, 15), None))
58
61
 
59
62
 
60
63
class Lock(object):
77
80
    def __eq__(self, other):
78
81
        return self.lock_url == other.lock_url and self.details == other.details
79
82
 
 
83
    def __repr__(self):
 
84
        return '%s(%s%s)' % (self.__class__.__name__,
 
85
                             self.lock_url, self.details)
 
86
 
80
87
 
81
88
try:
82
89
    import fcntl