mercurial/commands.py
changeset 1380 27add82ad845
parent 1374 c3654cfaa77d
child 1381 c29c36745c6e
--- a/mercurial/commands.py
+++ b/mercurial/commands.py
@@ -768,9 +768,7 @@ def docopy(ui, repo, pats, opts):
         if not opts['after']:
             try:
                 shutil.copyfile(rel, myreldest)
-                n = repo.manifest.tip()
-                mf = repo.manifest.readflags(n)
-                util.set_exec(myreldest, util.is_exec(rel, mf[abs]))
+                shutil.copymode(rel, myreldest)
             except shutil.Error, inst:
                 raise util.Abort(str(inst))
             except IOError, inst: