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

Fix more missing locks, found in testing bzr 1.0 compatibility.

Show diffs side-by-side

added added

removed removed

Lines of Context:
51
51
        return self._revid
52
52
 
53
53
    def get_parent_revids(self):
54
 
        return self._bzrbranch.repository.get_parents([self._revid])[0]
 
54
        repo = self._bzrbranch.repository
 
55
        repo.lock_read()
 
56
        retval = repo.get_parents([self._revid])[0]
 
57
        repo.unlock()
 
58
        return retval
55
59
 
56
60
    def is_merge_point(self):
57
61
        "Is the current revision a merge point?"
121
125
            last_revid = branch_last_rev
122
126
 
123
127
        repo = self._bzrbranch.repository
 
128
        repo.lock_read()
124
129
        rev_sequence = repo.iter_reverse_revision_history(last_revid)
125
130
        high_revid = None
126
131
        low_revid = None
146
151
        if not low_revid:
147
152
            low_revid = self._bzrbranch.get_rev_id(1)
148
153
 
 
154
        repo.unlock()
 
155
 
149
156
        # The spread must include the high revision, to bias
150
157
        # odd numbers of intervening revisions towards the high
151
158
        # side.