Mercurial > public > mercurial-scm > hg-stable
comparison mercurial/commands.py @ 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 | f786fc4b8764 |
children | fbab0875fd09 |
comparison
equal
deleted
inserted
replaced
11504:6bfb76cb8873 | 11507:35e2d453cf0d |
---|---|
40 ? foo.c | 40 ? foo.c |
41 $ hg add | 41 $ hg add |
42 adding foo.c | 42 adding foo.c |
43 $ hg status | 43 $ hg status |
44 A foo.c | 44 A foo.c |
45 | |
46 Returns 0 if all files are successfully added. | |
45 """ | 47 """ |
46 | 48 |
47 bad = [] | 49 bad = [] |
48 names = [] | 50 names = [] |
49 m = cmdutil.match(repo, pats, opts) | 51 m = cmdutil.match(repo, pats, opts) |
2730 ``default`` and ``default-push`` apply to all inbound (e.g. | 2732 ``default`` and ``default-push`` apply to all inbound (e.g. |
2731 :hg:`incoming`) and outbound (e.g. :hg:`outgoing`, :hg:`email` and | 2733 :hg:`incoming`) and outbound (e.g. :hg:`outgoing`, :hg:`email` and |
2732 :hg:`bundle`) operations. | 2734 :hg:`bundle`) operations. |
2733 | 2735 |
2734 See :hg:`help urls` for more information. | 2736 See :hg:`help urls` for more information. |
2737 | |
2738 Returns 0 on success. | |
2735 """ | 2739 """ |
2736 if search: | 2740 if search: |
2737 for name, path in ui.configitems("paths"): | 2741 for name, path in ui.configitems("paths"): |
2738 if name == search: | 2742 if name == search: |
2739 ui.write("%s\n" % url.hidepassword(path)) | 2743 ui.write("%s\n" % url.hidepassword(path)) |