changeset 18143 | 242d2f4ec01c |
parent 18133 | 7f5a0eba3768 |
child 18163 | c5bd753c5bc6 |
--- a/mercurial/commands.py Fri Dec 28 11:55:45 2012 +0100 +++ b/mercurial/commands.py Fri Dec 28 11:55:57 2012 +0100 @@ -4957,11 +4957,7 @@ for f in list: if f in added: continue # we never unlink added files on remove - try: - util.unlinkpath(repo.wjoin(f)) - except OSError, inst: - if inst.errno != errno.ENOENT: - raise + util.unlinkpath(repo.wjoin(f), ignoremissing=True) repo[None].forget(list) finally: wlock.release()