mercurial/cmdutil.py
changeset 30530 74013a831872
parent 30519 20a42325fdef
child 30531 841092fd6b85
equal deleted inserted replaced
30529:bd5c4320b5a8 30530:74013a831872
  3168         repo.wwrite(f, fc.data(), fc.flags())
  3168         repo.wwrite(f, fc.data(), fc.flags())
  3169 
  3169 
  3170     audit_path = pathutil.pathauditor(repo.root)
  3170     audit_path = pathutil.pathauditor(repo.root)
  3171     for f in actions['forget'][0]:
  3171     for f in actions['forget'][0]:
  3172         if interactive:
  3172         if interactive:
  3173             choice = \
  3173             choice = repo.ui.promptchoice(
  3174                 repo.ui.promptchoice(
  3174                 _("forget added file %s (yn)?$$ &Yes $$ &No") % f)
  3175                     _("forget added file %s (yn)?$$ &Yes $$ &No")
       
  3176                     % f)
       
  3177             if choice == 0:
  3175             if choice == 0:
  3178                 repo.dirstate.drop(f)
  3176                 repo.dirstate.drop(f)
  3179             else:
  3177             else:
  3180                 excluded_files.append(repo.wjoin(f))
  3178                 excluded_files.append(repo.wjoin(f))
  3181         else:
  3179         else: