mercurial/commands.py
changeset 4376 de612b5f8d59
parent 4325 aa26759c6fb3
child 4380 e89f9afc462b
child 4381 f4af7960d578
--- a/mercurial/commands.py	Tue Apr 24 12:02:51 2007 -0700
+++ b/mercurial/commands.py	Tue Apr 24 18:43:18 2007 -0700
@@ -503,7 +503,7 @@
                      util.localpath(prevsrc)))
             return
         if (not opts['after'] and os.path.exists(reltarget) or
-            opts['after'] and repo.dirstate.state(abstarget) not in '?r'):
+            opts['after'] and repo.dirstate.state(abstarget) not in '?ar'):
             if not opts['force']:
                 ui.warn(_('%s: not overwriting - file exists\n') %
                         reltarget)