Show More
@@ -2421,16 +2421,13 b' def remove(ui, repo, m, prefix, after, f' | |||||
2421 | if ui.verbose or not m.exact(f): |
|
2421 | if ui.verbose or not m.exact(f): | |
2422 | ui.status(_('removing %s\n') % m.rel(f)) |
|
2422 | ui.status(_('removing %s\n') % m.rel(f)) | |
2423 |
|
2423 | |||
2424 |
w |
|
2424 | with repo.wlock(): | |
2425 | try: |
|
|||
2426 | if not after: |
|
2425 | if not after: | |
2427 | for f in list: |
|
2426 | for f in list: | |
2428 | if f in added: |
|
2427 | if f in added: | |
2429 | continue # we never unlink added files on remove |
|
2428 | continue # we never unlink added files on remove | |
2430 | util.unlinkpath(repo.wjoin(f), ignoremissing=True) |
|
2429 | util.unlinkpath(repo.wjoin(f), ignoremissing=True) | |
2431 | repo[None].forget(list) |
|
2430 | repo[None].forget(list) | |
2432 | finally: |
|
|||
2433 | wlock.release() |
|
|||
2434 |
|
2431 | |||
2435 | return ret |
|
2432 | return ret | |
2436 |
|
2433 |
General Comments 0
You need to be logged in to leave comments.
Login now