do not copy atime and mtime in util.copyfiles
authorBenoit Boissinot <benoit.boissinot@ens-lyon.org>
Fri, 16 Dec 2005 01:32:44 -0600
changeset 1591 5a3229cf1492
parent 1590 bae3f3f993d6
child 1592 347c44611348
do not copy atime and mtime in util.copyfiles it is unsupported on some fs (vfat) and we don't need to copy it one clone anyway
mercurial/util.py
--- a/mercurial/util.py
+++ b/mercurial/util.py
@@ -357,9 +357,9 @@ def copyfiles(src, dst, hardlink=None):
                 os_link(src, dst)
             except:
                 hardlink = False
-                shutil.copy2(src, dst)
+                shutil.copy(src, dst)
         else:
-            shutil.copy2(src, dst)
+            shutil.copy(src, dst)
 
 def opener(base):
     """