mercurial/commands.py
changeset 2417 3a4ae3970af3
parent 2416 04736f38d74f
child 2422 6aa75e77cafe
--- a/mercurial/commands.py	Fri Jun 09 09:09:17 2006 -0700
+++ b/mercurial/commands.py	Fri Jun 09 09:14:30 2006 -0700
@@ -1066,7 +1066,7 @@
                 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']: