mercurial/commands.py
changeset 4577 b36d8cd1d8ff
parent 4576 b841dc886ba1
child 4584 0d26e3d0eeeb
--- a/mercurial/commands.py	Wed Jun 13 19:15:58 2007 -0300
+++ b/mercurial/commands.py	Wed Jun 13 19:15:58 2007 -0300
@@ -2099,7 +2099,7 @@
                 forget.append(abs)
                 continue
             reason = _('has been marked for add (use -f to force removal)')
-        elif abs in unknown:
+        elif repo.dirstate.state(abs) == '?':
             reason = _('is not managed')
         elif opts['after'] and not exact and abs not in deleted:
             continue