##// 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 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.
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 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':
@@ -49,7 +49,7 b' list of commands (use "hg help -v" to sh'
49 copy mark files as copied for the next commit
49 copy mark files as copied for the next commit
50 diff diff repository (or selected files)
50 diff diff repository (or selected files)
51 export dump the header and diffs for one or more changesets
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 grep search for a pattern in specified files and revisions
53 grep search for a pattern in specified files and revisions
54 heads show current repository heads
54 heads show current repository heads
55 help show help for a given command or all commands
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 copy mark files as copied for the next commit
92 copy mark files as copied for the next commit
93 diff diff repository (or selected files)
93 diff diff repository (or selected files)
94 export dump the header and diffs for one or more changesets
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 grep search for a pattern in specified files and revisions
96 grep search for a pattern in specified files and revisions
97 heads show current repository heads
97 heads show current repository heads
98 help show help for a given command or all commands
98 help show help for a given command or all commands
@@ -4,5 +4,6 b''
4 # should print A b/x
4 # should print A b/x
5 A b/x
5 A b/x
6 # should forget b/x
6 # should forget b/x
7 (the forget command is deprecated; use revert instead)
7 forgetting b/x
8 forgetting b/x
8 # should print nothing
9 # should print nothing
General Comments 0
You need to be logged in to leave comments. Login now