Mercurial > hg
changeset 11507:35e2d453cf0d stable
commands: document return values of add and paths commands
author | Nicolas Dumazet <nicdumz.commits@gmail.com> |
---|---|
date | Sun, 04 Jul 2010 17:05:17 +0900 |
parents | 6bfb76cb8873 |
children | fbab0875fd09 |
files | mercurial/commands.py tests/test-help.out |
diffstat | 2 files changed, 12 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/commands.py Sat Jul 03 01:56:09 2010 +0200 +++ b/mercurial/commands.py Sun Jul 04 17:05:17 2010 +0900 @@ -42,6 +42,8 @@ adding foo.c $ hg status A foo.c + + Returns 0 if all files are successfully added. """ bad = [] @@ -2732,6 +2734,8 @@ :hg:`bundle`) operations. See :hg:`help urls` for more information. + + Returns 0 on success. """ if search: for name, path in ui.configitems("paths"):
--- a/tests/test-help.out Sat Jul 03 01:56:09 2010 +0200 +++ b/tests/test-help.out Sun Jul 04 17:05:17 2010 +0900 @@ -252,6 +252,8 @@ If no names are given, add all files to the repository. + Returns 0 if all files are successfully added. + use "hg -v help add" to show verbose help options: @@ -287,6 +289,8 @@ $ hg status A foo.c + Returns 0 if all files are successfully added. + options: -I --include PATTERN [+] include names matching the given patterns @@ -332,6 +336,8 @@ If no names are given, add all files to the repository. + Returns 0 if all files are successfully added. + use "hg -v help add" to show verbose help options: @@ -355,6 +361,8 @@ If no names are given, add all files to the repository. + Returns 0 if all files are successfully added. + use "hg -v help add" to show verbose help options: