Mercurial > public > mercurial-scm > hg-stable
comparison mercurial/cmdutil.py @ 47603:7c64688e554d
revert: use `set_untracked` instead of `drop` when applicable
This is the new shiny API.
Differential Revision: https://phab.mercurial-scm.org/D11026
author | Pierre-Yves David <pierre-yves.david@octobus.net> |
---|---|
date | Thu, 08 Jul 2021 18:30:24 +0200 |
parents | 8f0c3533e28c |
children | 3c0efa0eeea6 |
comparison
equal
deleted
inserted
replaced
47602:8f0c3533e28c | 47603:7c64688e554d |
---|---|
3562 choice = repo.ui.promptchoice( | 3562 choice = repo.ui.promptchoice( |
3563 _(b"forget added file %s (Yn)?$$ &Yes $$ &No") % uipathfn(f) | 3563 _(b"forget added file %s (Yn)?$$ &Yes $$ &No") % uipathfn(f) |
3564 ) | 3564 ) |
3565 if choice == 0: | 3565 if choice == 0: |
3566 prntstatusmsg(b'forget', f) | 3566 prntstatusmsg(b'forget', f) |
3567 repo.dirstate.drop(f) | 3567 repo.dirstate.set_untracked(f) |
3568 else: | 3568 else: |
3569 excluded_files.append(f) | 3569 excluded_files.append(f) |
3570 else: | 3570 else: |
3571 prntstatusmsg(b'forget', f) | 3571 prntstatusmsg(b'forget', f) |
3572 repo.dirstate.drop(f) | 3572 repo.dirstate.set_untracked(f) |
3573 for f in actions[b'remove'][0]: | 3573 for f in actions[b'remove'][0]: |
3574 audit_path(f) | 3574 audit_path(f) |
3575 if interactive: | 3575 if interactive: |
3576 choice = repo.ui.promptchoice( | 3576 choice = repo.ui.promptchoice( |
3577 _(b"remove added file %s (Yn)?$$ &Yes $$ &No") % uipathfn(f) | 3577 _(b"remove added file %s (Yn)?$$ &Yes $$ &No") % uipathfn(f) |