mercurial/cmdutil.py
branchstable
changeset 24866 e1ec3d075c67
parent 24864 bff42a92012e
child 24947 a02d293a1079
--- a/mercurial/cmdutil.py	Mon Apr 27 16:24:43 2015 -0500
+++ b/mercurial/cmdutil.py	Mon Apr 27 14:02:49 2015 -0700
@@ -161,7 +161,7 @@
             dopatch = fp.tell()
             fp.seek(0)
 
-            [os.unlink(c) for c in newlyaddedandmodifiedfiles]
+            [os.unlink(repo.wjoin(c)) for c in newlyaddedandmodifiedfiles]
             # 3a. apply filtered patch to clean repo  (clean)
             if backups:
                 # Equivalent to hg.revert