# HG changeset patch # User timeless # Date 2015-12-17 14:53:40 # Node ID c2854c41f9acccc6b1c0420203a0a54bba45a765 # Parent c953e26f37346b054831b97f694b7aa12076ed7d add: mention .hgignore in help diff --git a/mercurial/commands.py b/mercurial/commands.py --- a/mercurial/commands.py +++ b/mercurial/commands.py @@ -193,7 +193,8 @@ def add(ui, repo, *pats, **opts): The files will be added to the repository at the next commit. To undo an add before that, see :hg:`forget`. - If no names are given, add all files to the repository. + If no names are given, add all files to the repository (except + files matching ``.hgignore``). .. container:: verbose diff --git a/tests/test-help.t b/tests/test-help.t --- a/tests/test-help.t +++ b/tests/test-help.t @@ -347,7 +347,8 @@ Test short command list with verbose opt The files will be added to the repository at the next commit. To undo an add before that, see "hg forget". - If no names are given, add all files to the repository. + If no names are given, add all files to the repository (except files + matching ".hgignore"). Returns 0 if all files are successfully added. @@ -372,7 +373,8 @@ Verbose help for add The files will be added to the repository at the next commit. To undo an add before that, see "hg forget". - If no names are given, add all files to the repository. + If no names are given, add all files to the repository (except files + matching ".hgignore"). Examples: @@ -2202,7 +2204,8 @@ Dish up an empty repo; serve it cold. undo an add before that, see "hg forget".

- If no names are given, add all files to the repository. + If no names are given, add all files to the repository (except + files matching ".hgignore").

Examples: