Mercurial > public > mercurial-scm > hg-stable
comparison mercurial/commands.py @ 2135:11ad47f22023
mark forget command as deprecated.
will be removed after 0.9 released.
author | Vadim Gelfer <vadim.gelfer@gmail.com> |
---|---|
date | Wed, 26 Apr 2006 12:05:16 -0700 |
parents | ef81e34ad674 |
children | 6447a32aefce |
comparison
equal
deleted
inserted
replaced
2134:ef81e34ad674 | 2135:11ad47f22023 |
---|---|
1570 for cset in revs: | 1570 for cset in revs: |
1571 seqno += 1 | 1571 seqno += 1 |
1572 doexport(ui, repo, cset, seqno, total, revwidth, opts) | 1572 doexport(ui, repo, cset, seqno, total, revwidth, opts) |
1573 | 1573 |
1574 def forget(ui, repo, *pats, **opts): | 1574 def forget(ui, repo, *pats, **opts): |
1575 """don't add the specified files on the next commit | 1575 """don't add the specified files on the next commit (DEPRECATED) |
1576 | 1576 |
1577 (DEPRECATED) | |
1577 Undo an 'hg add' scheduled for the next commit. | 1578 Undo an 'hg add' scheduled for the next commit. |
1578 """ | 1579 |
1580 This command is now deprecated and will be removed in a future | |
1581 release. Please use revert instead. | |
1582 """ | |
1583 ui.warn(_("(the forget command is deprecated; use revert instead)\n")) | |
1579 forget = [] | 1584 forget = [] |
1580 for src, abs, rel, exact in walk(repo, pats, opts): | 1585 for src, abs, rel, exact in walk(repo, pats, opts): |
1581 if repo.dirstate.state(abs) == 'a': | 1586 if repo.dirstate.state(abs) == 'a': |
1582 forget.append(abs) | 1587 forget.append(abs) |
1583 if ui.verbose or not exact: | 1588 if ui.verbose or not exact: |