commands.remove: don't use the unknown list
authorAlexis S. L. Carvalho <alexis@cecm.usp.br>
Wed, 13 Jun 2007 19:15:58 -0300
changeset 4575 b36d8cd1d8ff
parent 4574 b841dc886ba1
child 4576 eb3b7dd1e158
commands.remove: don't use the unknown list
mercurial/commands.py
--- a/mercurial/commands.py
+++ b/mercurial/commands.py
@@ -2099,7 +2099,7 @@ def remove(ui, repo, *pats, **opts):
                 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