mercurial/localrepo.py
changeset 7121 b801d6e5dc83
parent 7090 7b5c063b0b94
child 7134 cb6395fc16a9
--- a/mercurial/localrepo.py	Fri Oct 17 12:12:33 2008 +0200
+++ b/mercurial/localrepo.py	Sat Oct 18 04:26:09 2008 -0500
@@ -1149,7 +1149,7 @@
                                "symbolic link\n") % dest)
             else:
                 wlock = self.wlock()
-                if dest not in self.dirstate:
+                if self.dirstate[dest] in '?r':
                     self.dirstate.add(dest)
                 self.dirstate.copy(source, dest)
         finally: