equal
deleted
inserted
replaced
168 if not after: |
168 if not after: |
169 # If this is being called by addremove, notify the user that we |
169 # If this is being called by addremove, notify the user that we |
170 # are removing the file. |
170 # are removing the file. |
171 if getattr(repo, "_isaddremove", False): |
171 if getattr(repo, "_isaddremove", False): |
172 ui.status(_('removing %s\n') % f) |
172 ui.status(_('removing %s\n') % f) |
173 if os.path.exists(repo.wjoin(f)): |
173 util.unlinkpath(repo.wjoin(f), ignoremissing=True) |
174 util.unlinkpath(repo.wjoin(f)) |
|
175 lfdirstate.remove(f) |
174 lfdirstate.remove(f) |
176 lfdirstate.write() |
175 lfdirstate.write() |
177 forget = [lfutil.standin(f) for f in forget] |
176 forget = [lfutil.standin(f) for f in forget] |
178 remove = [lfutil.standin(f) for f in remove] |
177 remove = [lfutil.standin(f) for f in remove] |
179 repo[None].forget(forget) |
178 repo[None].forget(forget) |