diff hgext/convert/subversion.py @ 12343:28642f7fc2cf stable

convert/svn: fix broken symlink renames in svn sink
author Patrick Mezard <pmezard@gmail.com>
date Mon, 20 Sep 2010 21:46:39 +0200
parents 2b7a75ca6913
children 614f0d8724ab
line wrap: on
line diff
--- a/hgext/convert/subversion.py	Mon Sep 20 21:46:39 2010 +0200
+++ b/hgext/convert/subversion.py	Mon Sep 20 21:46:39 2010 +0200
@@ -1037,7 +1037,7 @@
         # our copyfile method expects to record a copy that has
         # already occurred.  Cross the semantic gap.
         wdest = self.wjoin(dest)
-        exists = os.path.exists(wdest)
+        exists = os.path.lexists(wdest)
         if exists:
             fd, tempname = tempfile.mkstemp(
                 prefix='hg-copy-', dir=os.path.dirname(wdest))