Show More
@@ -162,8 +162,7 b' class bmstore(dict):' | |||||
162 | def _writeactive(self): |
|
162 | def _writeactive(self): | |
163 | if self._aclean: |
|
163 | if self._aclean: | |
164 | return |
|
164 | return | |
165 |
w |
|
165 | with self._repo.wlock(): | |
166 | try: |
|
|||
167 | if self._active is not None: |
|
166 | if self._active is not None: | |
168 | f = self._repo.vfs('bookmarks.current', 'w', atomictemp=True) |
|
167 | f = self._repo.vfs('bookmarks.current', 'w', atomictemp=True) | |
169 | try: |
|
168 | try: | |
@@ -176,8 +175,6 b' class bmstore(dict):' | |||||
176 | except OSError as inst: |
|
175 | except OSError as inst: | |
177 | if inst.errno != errno.ENOENT: |
|
176 | if inst.errno != errno.ENOENT: | |
178 | raise |
|
177 | raise | |
179 | finally: |
|
|||
180 | wlock.release() |
|
|||
181 | self._aclean = True |
|
178 | self._aclean = True | |
182 |
|
179 | |||
183 | def _write(self, fp): |
|
180 | def _write(self, fp): |
General Comments 0
You need to be logged in to leave comments.
Login now