Show More
@@ -190,7 +190,9 b' def add(ui, repo, *pats, **opts):' | |||||
190 |
|
190 | |||
191 | .. container:: verbose |
|
191 | .. container:: verbose | |
192 |
|
192 | |||
193 | An example showing how new (unknown) files are added |
|
193 | Examples: | |
|
194 | ||||
|
195 | - New (unknown) files are added | |||
194 | automatically by :hg:`add`:: |
|
196 | automatically by :hg:`add`:: | |
195 |
|
197 | |||
196 | $ ls |
|
198 | $ ls | |
@@ -202,6 +204,18 b' def add(ui, repo, *pats, **opts):' | |||||
202 | $ hg status |
|
204 | $ hg status | |
203 | A foo.c |
|
205 | A foo.c | |
204 |
|
206 | |||
|
207 | - Specific files to be added can be specified:: | |||
|
208 | ||||
|
209 | $ ls | |||
|
210 | bar.c foo.c | |||
|
211 | $ hg status | |||
|
212 | ? bar.c | |||
|
213 | ? foo.c | |||
|
214 | $ hg add bar.c | |||
|
215 | $ hg status | |||
|
216 | A bar.c | |||
|
217 | ? foo.c | |||
|
218 | ||||
205 | Returns 0 if all files are successfully added. |
|
219 | Returns 0 if all files are successfully added. | |
206 | """ |
|
220 | """ | |
207 |
|
221 |
@@ -372,8 +372,9 b' Verbose help for add' | |||||
372 |
|
372 | |||
373 | If no names are given, add all files to the repository. |
|
373 | If no names are given, add all files to the repository. | |
374 |
|
374 | |||
375 | An example showing how new (unknown) files are added automatically by "hg |
|
375 | Examples: | |
376 | add": |
|
376 | ||
|
377 | - New (unknown) files are added automatically by "hg add": | |||
377 |
|
378 | |||
378 | $ ls |
|
379 | $ ls | |
379 | foo.c |
|
380 | foo.c | |
@@ -384,6 +385,18 b' Verbose help for add' | |||||
384 | $ hg status |
|
385 | $ hg status | |
385 | A foo.c |
|
386 | A foo.c | |
386 |
|
387 | |||
|
388 | - Specific files to be added can be specified: | |||
|
389 | ||||
|
390 | $ ls | |||
|
391 | bar.c foo.c | |||
|
392 | $ hg status | |||
|
393 | ? bar.c | |||
|
394 | ? foo.c | |||
|
395 | $ hg add bar.c | |||
|
396 | $ hg status | |||
|
397 | A bar.c | |||
|
398 | ? foo.c | |||
|
399 | ||||
387 | Returns 0 if all files are successfully added. |
|
400 | Returns 0 if all files are successfully added. | |
388 |
|
401 | |||
389 | options ([+] can be repeated): |
|
402 | options ([+] can be repeated): | |
@@ -1995,9 +2008,10 b' Dish up an empty repo; serve it cold.' | |||||
1995 | If no names are given, add all files to the repository. |
|
2008 | If no names are given, add all files to the repository. | |
1996 | </p> |
|
2009 | </p> | |
1997 | <p> |
|
2010 | <p> | |
1998 | An example showing how new (unknown) files are added |
|
2011 | Examples: | |
1999 | automatically by "hg add": |
|
|||
2000 | </p> |
|
2012 | </p> | |
|
2013 | <ul> | |||
|
2014 | <li> New (unknown) files are added automatically by "hg add": | |||
2001 | <pre> |
|
2015 | <pre> | |
2002 | \$ ls (re) |
|
2016 | \$ ls (re) | |
2003 | foo.c |
|
2017 | foo.c | |
@@ -2008,6 +2022,19 b' Dish up an empty repo; serve it cold.' | |||||
2008 | \$ hg status (re) |
|
2022 | \$ hg status (re) | |
2009 | A foo.c |
|
2023 | A foo.c | |
2010 | </pre> |
|
2024 | </pre> | |
|
2025 | <li> Specific files to be added can be specified: | |||
|
2026 | <pre> | |||
|
2027 | \$ ls (re) | |||
|
2028 | bar.c foo.c | |||
|
2029 | \$ hg status (re) | |||
|
2030 | ? bar.c | |||
|
2031 | ? foo.c | |||
|
2032 | \$ hg add bar.c (re) | |||
|
2033 | \$ hg status (re) | |||
|
2034 | A bar.c | |||
|
2035 | ? foo.c | |||
|
2036 | </pre> | |||
|
2037 | </ul> | |||
2011 | <p> |
|
2038 | <p> | |
2012 | Returns 0 if all files are successfully added. |
|
2039 | Returns 0 if all files are successfully added. | |
2013 | </p> |
|
2040 | </p> |
General Comments 0
You need to be logged in to leave comments.
Login now