comparison mercurial/commands.py @ 4575: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 0d26e3d0eeeb
comparison
equal deleted inserted replaced
4574:b841dc886ba1 4575:b36d8cd1d8ff
2097 elif abs in added: 2097 elif abs in added:
2098 if opts['force']: 2098 if opts['force']:
2099 forget.append(abs) 2099 forget.append(abs)
2100 continue 2100 continue
2101 reason = _('has been marked for add (use -f to force removal)') 2101 reason = _('has been marked for add (use -f to force removal)')
2102 elif abs in unknown: 2102 elif repo.dirstate.state(abs) == '?':
2103 reason = _('is not managed') 2103 reason = _('is not managed')
2104 elif opts['after'] and not exact and abs not in deleted: 2104 elif opts['after'] and not exact and abs not in deleted:
2105 continue 2105 continue
2106 elif abs in removed: 2106 elif abs in removed:
2107 continue 2107 continue