mercurial/commands.py
changeset 4575 b36d8cd1d8ff
parent 4574 b841dc886ba1
child 4584 0d26e3d0eeeb
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