# HG changeset patch # User Eric Hopper # Date 1128453899 25200 # Node ID 27add82ad84514d3362089db0bacbe61df4ecc9e # Parent 8ee7ce877be2a4d4e525e7f995d9942920b6a319 Fix an hg copy/move bug. Failed if file being copied or moved not in tip. diff --git a/mercurial/commands.py b/mercurial/commands.py --- 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: