Mercurial > hg-stable
changeset 15118:9a1438f6af5f
forget: add help examples
author | Matt Mackall <mpm@selenic.com> |
---|---|
date | Sat, 17 Sep 2011 13:08:24 -0500 |
parents | 0ab1c3a1f3b2 |
children | ac46a9cdf6e6 |
files | mercurial/commands.py |
diffstat | 1 files changed, 12 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/commands.py Sat Sep 17 12:34:47 2011 -0500 +++ b/mercurial/commands.py Sat Sep 17 13:08:24 2011 -0500 @@ -2327,6 +2327,18 @@ To undo a forget before the next commit, see :hg:`add`. + .. container:: verbose + + Examples: + + - forget newly-added binary files:: + + hg forget "set:added() and binary()" + + - forget files that would be excluded by .hgignore:: + + hg forget "set:hgignore()" + Returns 0 on success. """