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: |