mercurial/cmdutil.py
changeset 12345 e0ee3e822a9a
parent 12270 166b9866580a
parent 12342 70236d6fd844
child 12357 cb59654c2c7a
--- a/mercurial/cmdutil.py	Mon Sep 20 15:46:17 2010 +0200
+++ b/mercurial/cmdutil.py	Mon Sep 20 22:29:13 2010 +0200
@@ -422,7 +422,7 @@
             return
 
         # check for overwrites
-        exists = os.path.exists(target)
+        exists = os.path.lexists(target)
         if not after and exists or after and state in 'mn':
             if not opts['force']:
                 ui.warn(_('%s: not overwriting - file exists\n') %