[PATCH] document return values of add and paths commands
Nicolas Dumazet
nicdumz at gmail.com
Sun Jul 4 03:44:25 CDT 2010
# HG changeset patch
# User Nicolas Dumazet <nicdumz.commits at gmail.com>
# Date 1278230717 -32400
# Branch stable
# Node ID 4b0356ce5f8432d564245bc3dba200afc1ff0955
# Parent 69754d462a99ea2b21e6c49d385f5cedfa07aaa2
document return values of add and paths commands
diff --git a/mercurial/commands.py b/mercurial/commands.py
--- a/mercurial/commands.py
+++ b/mercurial/commands.py
@@ -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"):
diff --git a/tests/test-help.out b/tests/test-help.out
--- a/tests/test-help.out
+++ b/tests/test-help.out
@@ -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:
More information about the Mercurial-devel
mailing list