Commit e6a40244 authored by Nicolas Dumazet's avatar Nicolas Dumazet
Browse files

commands: document return values of add and paths commands

--HG--
branch : stable
parent 6bfb76cb8873
......@@ -42,6 +42,8 @@ def add(ui, repo, *pats, **opts):
adding foo.c
$ hg status
A foo.c
Returns 0 if all files are successfully added.
"""
bad = []
......@@ -2732,6 +2734,8 @@ def paths(ui, repo, search=None):
:hg:`bundle`) operations.
See :hg:`help urls` for more information.
Returns 0 on success.
"""
if search:
for name, path in ui.configitems("paths"):
......
......@@ -252,6 +252,8 @@ add the specified files on the next commit
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 @@ add the specified files on the next commit
$ 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 @@ add the specified files on the next commit
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 @@ add the specified files on the next commit
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:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment