equal
deleted
inserted
replaced
218 if tobackup: |
218 if tobackup: |
219 os.rmdir(backupdir) |
219 os.rmdir(backupdir) |
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 """ |
227 Return cmd -> (aliases, command table entry) |
234 Return cmd -> (aliases, command table entry) |
228 for each matching command. |
235 for each matching command. |