# HG changeset patch # User Alexis S. L. Carvalho # Date 1181772958 10800 # Node ID b36d8cd1d8ff9425eef269c7a219433366dbf1ef # Parent b841dc886ba1698d34f8da04afc64b9ee91d9a64 commands.remove: don't use the unknown list diff --git a/mercurial/commands.py b/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