changeset 2417:3a4ae3970af3

copy: fix introduced bug.
author Vadim Gelfer <vadim.gelfer@gmail.com>
date Fri, 09 Jun 2006 09:14:30 -0700
parents 04736f38d74f
children 99835097bca9
files mercurial/commands.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/commands.py
+++ b/mercurial/commands.py
@@ -1066,7 +1066,7 @@ def docopy(ui, repo, pats, opts, wlock):
                 os.makedirs(targetdir)
             try:
                 restore = repo.dirstate.state(abstarget) == 'r'
-                if restore and not dry_run:
+                if restore and not opts['dry_run']:
                     repo.undelete([abstarget], wlock)
                 try:
                     if not opts['dry_run']: