changeset 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 2498128821a9
children ecc79816d31e
files mercurial/patch.py
diffstat 1 files changed, 0 insertions(+), 1 deletions(-) [+]
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"