changeset 4577:b36d8cd1d8ff

commands.remove: don't use the unknown list
author Alexis S. L. Carvalho <alexis@cecm.usp.br>
date Wed, 13 Jun 2007 19:15:58 -0300
parents b841dc886ba1
children eb3b7dd1e158
files mercurial/commands.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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