mercurial/hg.py
changeset 3713 8ae88ed2a3b6
parent 3680 69cf255a55a1
child 3791 8643b9f90b51
--- a/mercurial/hg.py	Mon Nov 27 20:55:50 2006 +0100
+++ b/mercurial/hg.py	Mon Nov 27 22:22:44 2006 +0100
@@ -156,11 +156,10 @@
         # we lock here to avoid premature writing to the target
         dest_lock = lock.lock(os.path.join(dest_path, ".hg", "lock"))
 
-        # we need to remove the (empty) data dir in dest so copyfiles
-        # can do its work
-        os.rmdir(os.path.join(dest_path, ".hg", "data"))
-        files = "data 00manifest.d 00manifest.i 00changelog.d 00changelog.i"
-        for f in files.split():
+        files = ("data",
+                 "00manifest.d", "00manifest.i",
+                 "00changelog.d", "00changelog.i")
+        for f in files:
             src = os.path.join(source, ".hg", f)
             dst = os.path.join(dest_path, ".hg", f)
             try: