Show More
@@ -130,13 +130,12 b' def trywritehiddencache(repo, hideable, ' | |||||
130 | newhash = cachehash(repo, hideable) |
|
130 | newhash = cachehash(repo, hideable) | |
131 | fh = repo.vfs.open(cachefile, 'w+b', atomictemp=True) |
|
131 | fh = repo.vfs.open(cachefile, 'w+b', atomictemp=True) | |
132 | _writehiddencache(fh, newhash, hidden) |
|
132 | _writehiddencache(fh, newhash, hidden) | |
|
133 | fh.close() | |||
133 | except (IOError, OSError): |
|
134 | except (IOError, OSError): | |
134 | repo.ui.debug('error writing hidden changesets cache\n') |
|
135 | repo.ui.debug('error writing hidden changesets cache\n') | |
135 | except error.LockHeld: |
|
136 | except error.LockHeld: | |
136 | repo.ui.debug('cannot obtain lock to write hidden changesets cache\n') |
|
137 | repo.ui.debug('cannot obtain lock to write hidden changesets cache\n') | |
137 | finally: |
|
138 | finally: | |
138 | if fh: |
|
|||
139 | fh.close() |
|
|||
140 | if wlock: |
|
139 | if wlock: | |
141 | wlock.release() |
|
140 | wlock.release() | |
142 |
|
141 |
General Comments 0
You need to be logged in to leave comments.
Login now