##// END OF EJS Templates
with: use context manager for wlock in recordinwlock
Bryan O'Sullivan -
r27801:7be6371c default
parent child Browse files
Show More
@@ -230,11 +230,8 b' def dorecord(ui, repo, commitfunc, cmdsu'
230 230 pass
231 231
232 232 def recordinwlock(ui, repo, message, match, opts):
233 wlock = repo.wlock()
234 try:
233 with repo.wlock():
235 234 return recordfunc(ui, repo, message, match, opts)
236 finally:
237 wlock.release()
238 235
239 236 return commit(ui, repo, recordinwlock, pats, opts)
240 237
General Comments 0
You need to be logged in to leave comments. Login now