/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/tests/lock_helpers.py

  • Committer: Robert J. Tanner
  • Date: 2009-04-29 05:53:21 UTC
  • mfrom: (4311 +trunk)
  • mto: This revision was merged to the branch mainline in revision 4312.
  • Revision ID: tanner@real-time.com-20090429055321-v2s5l1mgki9f6cgn
[merge] 1.14 back to trunk

Show diffs side-by-side

added added

removed removed

Lines of Context:
44
44
        self.__dict__['_allow_read'] = True
45
45
        self.__dict__['_allow_unlock'] = True
46
46
 
 
47
    def __eq__(self, other):
 
48
        # Branch objects look for controlfiles == repo.controlfiles.
 
49
        if type(other) is LockWrapper:
 
50
            return self._other == other._other
 
51
        return False
 
52
 
47
53
    def __getattr__(self, attr):
48
54
        return getattr(self._other, attr)
49
55