diff mercurial/commands.py @ 10446:a565a2445eb5

commands: add verbose example to help text for add
author Martin Geisler <mg@lazybytes.net>
date Sat, 13 Feb 2010 18:44:19 +0100
parents 8b45102934e2
children 6e5a47398fc5
line wrap: on
line diff
--- a/mercurial/commands.py	Sat Feb 13 18:36:24 2010 +0100
+++ b/mercurial/commands.py	Sat Feb 13 18:44:19 2010 +0100
@@ -28,6 +28,19 @@
     undo an add before that, see hg forget.
 
     If no names are given, add all files to the repository.
+
+    .. container:: verbose
+
+       An example showing how new (unknown) files are added
+       automatically by ``hg add``::
+
+         $ ls
+         foo.c
+         $ hg status
+         ? foo.c
+         $ hg add
+         adding foo.c
+         $ hg status
     """
 
     bad = []