##// END OF EJS Templates
with: use context manager in rebuildfncache again
Bryan O'Sullivan -
r27860:0da102e4 default
parent child Browse files
Show More
@@ -252,8 +252,7 b' def rebuildfncache(ui, repo):'
252 252 'support fncache)\n'))
253 253 return
254 254
255 lock = repo.lock()
256 try:
255 with repo.lock():
257 256 fnc = repo.store.fncache
258 257 # Trigger load of fncache.
259 258 if 'irrelevant' in fnc:
@@ -305,8 +304,6 b' def rebuildfncache(ui, repo):'
305 304 tr.release()
306 305 else:
307 306 ui.write(_('fncache already up to date\n'))
308 finally:
309 lock.release()
310 307
311 308 def stripbmrevset(repo, mark):
312 309 """
General Comments 0
You need to be logged in to leave comments. Login now