##// END OF EJS Templates
cmdutil: put recordfunc invocation into wlock scope for consistency...
FUJIWARA Katsunori -
r25758:c5dfa47a default
parent child Browse files
Show More
@@ -220,7 +220,14 b' def dorecord(ui, repo, commitfunc, cmdsu'
220 except OSError:
220 except OSError:
221 pass
221 pass
222
222
223 return commit(ui, repo, recordfunc, pats, opts)
223 def recordinwlock(ui, repo, message, match, opts):
224 wlock = repo.wlock()
225 try:
226 return recordfunc(ui, repo, message, match, opts)
227 finally:
228 wlock.release()
229
230 return commit(ui, repo, recordinwlock, pats, opts)
224
231
225 def findpossible(cmd, table, strict=False):
232 def findpossible(cmd, table, strict=False):
226 """
233 """
General Comments 0
You need to be logged in to leave comments. Login now