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	Fri Dec 16 01:32:28 2005 -0600
+++ b/mercurial/util.py	Fri Dec 16 01:32:44 2005 -0600
@@ -357,9 +357,9 @@
                 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):
     """