~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/lock.py

  • Committer: Vincent Ladeuil
  • Date: 2009-05-08 17:29:33 UTC
  • mfrom: (4327.1.6 failing-lock-tests)
  • mto: This revision was merged to the branch mainline in revision 4347.
  • Revision ID: v.ladeuil+lp@free.fr-20090508172933-b9855z2ru1ul9gwh
Fix some lock-related test failures

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