mercurial/merge.py
changeset 18143 242d2f4ec01c
parent 18134 6c35b53cd28b
child 18328 2fee5119099b
--- a/mercurial/merge.py	Fri Dec 28 11:55:45 2012 +0100
+++ b/mercurial/merge.py	Fri Dec 28 11:55:57 2012 +0100
@@ -382,11 +382,10 @@
             if f == '.hgsubstate': # subrepo states need updating
                 subrepo.submerge(repo, wctx, mctx, wctx, overwrite)
             try:
-                util.unlinkpath(repo.wjoin(f))
+                util.unlinkpath(repo.wjoin(f), ignoremissing=True)
             except OSError, inst:
-                if inst.errno != errno.ENOENT:
-                    repo.ui.warn(_("update failed to remove %s: %s!\n") %
-                                 (f, inst.strerror))
+                repo.ui.warn(_("update failed to remove %s: %s!\n") %
+                             (f, inst.strerror))
             removed += 1
         elif m == "m": # merge
             if f == '.hgsubstate': # subrepo states need updating