diff mercurial/patch.py @ 7783:2c5b2abfb8be

patch: teach selectfile about symlinks (issue1438)
author Matt Mackall <mpm@selenic.com>
date Mon, 16 Feb 2009 17:37:23 -0600
parents e617f2e99e61
children 162fd31bbd93
line wrap: on
line diff
--- a/mercurial/patch.py	Mon Feb 16 17:37:23 2009 -0600
+++ b/mercurial/patch.py	Mon Feb 16 17:37:23 2009 -0600
@@ -751,7 +751,7 @@
     nulla = afile_orig == "/dev/null"
     nullb = bfile_orig == "/dev/null"
     abase, afile = pathstrip(afile_orig, strip)
-    gooda = not nulla and os.path.exists(afile)
+    gooda = not nulla and util.lexists(afile)
     bbase, bfile = pathstrip(bfile_orig, strip)
     if afile == bfile:
         goodb = gooda