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