tests/test-help.t
changeset 27143 fab21bac1024
parent 27115 cb74f206d39b
child 27263 4efb36ecaaec
equal deleted inserted replaced
27142:060f83d219b9 27143:fab21bac1024
   370       The files will be added to the repository at the next commit. To undo an
   370       The files will be added to the repository at the next commit. To undo an
   371       add before that, see "hg forget".
   371       add before that, see "hg forget".
   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   
   377         - New (unknown) files are added automatically by "hg add":
   378         $ ls
   378   
   379         foo.c
   379             $ ls
   380         $ hg status
   380             foo.c
   381         ? foo.c
   381             $ hg status
   382         $ hg add
   382             ? foo.c
   383         adding foo.c
   383             $ hg add
   384         $ hg status
   384             adding foo.c
   385         A foo.c
   385             $ hg status
       
   386             A foo.c
       
   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
   386   
   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):
   390   
   403   
  1993   </p>
  2006   </p>
  1994   <p>
  2007   <p>
  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 &quot;hg add&quot;:
  2012   </p>
  2000   </p>
  2013   <ul>
       
  2014    <li> New (unknown) files are added   automatically by &quot;hg add&quot;:
  2001   <pre>
  2015   <pre>
  2002   \$ ls (re)
  2016   \$ ls (re)
  2003   foo.c
  2017   foo.c
  2004   \$ hg status (re)
  2018   \$ hg status (re)
  2005   ? foo.c
  2019   ? foo.c
  2006   \$ hg add (re)
  2020   \$ hg add (re)
  2007   adding foo.c
  2021   adding foo.c
  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>
  2014   <p>
  2041   <p>
  2015   options ([+] can be repeated):
  2042   options ([+] can be repeated):