diff mercurial/patch.py @ 14533:aa12e1bbde10

patch: remove unnecessary exists() call in selectfile()
author Patrick Mezard <pmezard@gmail.com>
date Sun, 05 Jun 2011 22:24:11 +0200
parents b88368a3ade4
children ecc79816d31e
line wrap: on
line diff
--- a/mercurial/patch.py	Sun Jun 05 22:24:02 2011 +0200
+++ b/mercurial/patch.py	Sun Jun 05 22:24:11 2011 +0200
@@ -1023,7 +1023,6 @@
         fname = pathstrip(gp.path, strip - 1)[1]
         create = gp.op in ('ADD', 'COPY', 'RENAME')
         remove = gp.op == 'DELETE'
-        missing = not create and not backend.exists(fname)
         return fname, create, remove
     nulla = afile_orig == "/dev/null"
     nullb = bfile_orig == "/dev/null"