diff -r 467d923e4e3d -r fb031f47890f mercurial/commands.py --- a/mercurial/commands.py Wed Oct 25 17:45:35 2006 -0500 +++ b/mercurial/commands.py Wed Oct 25 17:47:53 2006 -0500 @@ -1391,24 +1391,6 @@ switch_parent=opts['switch_parent'], 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): """search for a pattern in specified files and revisions @@ -2982,8 +2964,6 @@ ('', 'nodates', None, _("don't include dates in diff headers")), ('', 'switch-parent', None, _('diff against the second parent'))], _('hg export [-a] [-o OUTFILESPEC] REV...')), - "debugforget|forget": - (forget, walkopts, _('hg forget [OPTION]... FILE...')), "grep": (grep, [('0', 'print0', None, _('end fields with NUL')),