changeset 1380:27add82ad845

Fix an hg copy/move bug. Failed if file being copied or moved not in tip.
author Eric Hopper <hopper@omnifarious.org>
date Tue, 04 Oct 2005 12:24:59 -0700
parents 8ee7ce877be2
children c29c36745c6e
files mercurial/commands.py
diffstat 1 files changed, 1 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/commands.py	Tue Oct 04 11:25:48 2005 -0700
+++ b/mercurial/commands.py	Tue Oct 04 12:24:59 2005 -0700
@@ -768,9 +768,7 @@
         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: