Remove forget command, deprecated pre-0.9

This commit is contained in:
Matt Mackall 2006-10-25 17:47:53 -05:00
parent 4a4ec34349
commit 750733af82

View File

@ -1391,24 +1391,6 @@ def export(ui, repo, *changesets, **opts):
switch_parent=opts['switch_parent'], switch_parent=opts['switch_parent'],
opts=patch.diffopts(ui, opts)) opts=patch.diffopts(ui, opts))
def forget(ui, repo, *pats, **opts):
"""don't add the specified files on the next commit (DEPRECATED)
(DEPRECATED)
Undo an 'hg add' scheduled for the next commit.
This command is now deprecated and will be removed in a future
release. Please use revert instead.
"""
ui.warn(_("(the forget command is deprecated; use revert instead)\n"))
forget = []
for src, abs, rel, exact in cmdutil.walk(repo, pats, opts):
if repo.dirstate.state(abs) == 'a':
forget.append(abs)
if ui.verbose or not exact:
ui.status(_('forgetting %s\n') % ((pats and rel) or abs))
repo.forget(forget)
def grep(ui, repo, pattern, *pats, **opts): def grep(ui, repo, pattern, *pats, **opts):
"""search for a pattern in specified files and revisions """search for a pattern in specified files and revisions
@ -2982,8 +2964,6 @@ table = {
('', 'nodates', None, _("don't include dates in diff headers")), ('', 'nodates', None, _("don't include dates in diff headers")),
('', 'switch-parent', None, _('diff against the second parent'))], ('', 'switch-parent', None, _('diff against the second parent'))],
_('hg export [-a] [-o OUTFILESPEC] REV...')), _('hg export [-a] [-o OUTFILESPEC] REV...')),
"debugforget|forget":
(forget, walkopts, _('hg forget [OPTION]... FILE...')),
"grep": "grep":
(grep, (grep,
[('0', 'print0', None, _('end fields with NUL')), [('0', 'print0', None, _('end fields with NUL')),