diff mercurial/util.py @ 13099:a08b49d2f116

record: move copystat() hack out of util.copyfile() and into record b2410ed2cbe9 updated copyfile to also copy over atimes and mtimes. That behavior is specifically to trick editors into thinking files that hg record has modified haven't changed. We don't really care about preserving times in the general case.
author Brodie Rao <brodie@bitheap.org>
date Tue, 07 Dec 2010 20:03:05 +1100
parents f7d6750dcd01
children 039a964dbbb3
line wrap: on
line diff
--- a/mercurial/util.py	Tue Dec 07 16:03:42 2010 +0100
+++ b/mercurial/util.py	Tue Dec 07 20:03:05 2010 +1100
@@ -452,7 +452,7 @@
     else:
         try:
             shutil.copyfile(src, dest)
-            shutil.copystat(src, dest)
+            shutil.copymode(src, dest)
         except shutil.Error, inst:
             raise Abort(str(inst))