##// END OF EJS Templates
mark forget command as deprecated....
Vadim Gelfer -
r2135:11ad47f2 default
parent child Browse files
Show More
@@ -1572,10 +1572,15 b' def export(ui, repo, *changesets, **opts'
1572 1572 doexport(ui, repo, cset, seqno, total, revwidth, opts)
1573 1573
1574 1574 def forget(ui, repo, *pats, **opts):
1575 """don't add the specified files on the next commit
1576
1575 """don't add the specified files on the next commit (DEPRECATED)
1576
1577 (DEPRECATED)
1577 1578 Undo an 'hg add' scheduled for the next commit.
1579
1580 This command is now deprecated and will be removed in a future
1581 release. Please use revert instead.
1578 1582 """
1583 ui.warn(_("(the forget command is deprecated; use revert instead)\n"))
1579 1584 forget = []
1580 1585 for src, abs, rel, exact in walk(repo, pats, opts):
1581 1586 if repo.dirstate.state(abs) == 'a':
@@ -49,7 +49,7 b' list of commands (use "hg help -v" to sh'
49 49 copy mark files as copied for the next commit
50 50 diff diff repository (or selected files)
51 51 export dump the header and diffs for one or more changesets
52 forget don't add the specified files on the next commit
52 forget don't add the specified files on the next commit (DEPRECATED)
53 53 grep search for a pattern in specified files and revisions
54 54 heads show current repository heads
55 55 help show help for a given command or all commands
@@ -92,7 +92,7 b' list of commands (use "hg help -v" to sh'
92 92 copy mark files as copied for the next commit
93 93 diff diff repository (or selected files)
94 94 export dump the header and diffs for one or more changesets
95 forget don't add the specified files on the next commit
95 forget don't add the specified files on the next commit (DEPRECATED)
96 96 grep search for a pattern in specified files and revisions
97 97 heads show current repository heads
98 98 help show help for a given command or all commands
@@ -4,5 +4,6 b''
4 4 # should print A b/x
5 5 A b/x
6 6 # should forget b/x
7 (the forget command is deprecated; use revert instead)
7 8 forgetting b/x
8 9 # should print nothing
General Comments 0
You need to be logged in to leave comments. Login now