Show More
@@ -230,11 +230,8 b' def dorecord(ui, repo, commitfunc, cmdsu' | |||||
230 | pass |
|
230 | pass | |
231 |
|
231 | |||
232 | def recordinwlock(ui, repo, message, match, opts): |
|
232 | def recordinwlock(ui, repo, message, match, opts): | |
233 |
w |
|
233 | with repo.wlock(): | |
234 | try: |
|
|||
235 | return recordfunc(ui, repo, message, match, opts) |
|
234 | return recordfunc(ui, repo, message, match, opts) | |
236 | finally: |
|
|||
237 | wlock.release() |
|
|||
238 |
|
235 | |||
239 | return commit(ui, repo, recordinwlock, pats, opts) |
|
236 | return commit(ui, repo, recordinwlock, pats, opts) | |
240 |
|
237 |
General Comments 0
You need to be logged in to leave comments.
Login now