doc/hg.1.txt
changeset 1281 84df9951532a
parent 1274 fe3dd937e803
child 1308 2073e5a71008
equal deleted inserted replaced
1279:8ab1c07d4e0b 1281:84df9951532a
   137     -I, --include <pat>       include names matching the given patterns
   137     -I, --include <pat>       include names matching the given patterns
   138     -X, --exclude <pat>       exclude names matching the given patterns
   138     -X, --exclude <pat>       exclude names matching the given patterns
   139     -o, --output <filespec>   print output to file with formatted name
   139     -o, --output <filespec>   print output to file with formatted name
   140     -r, --rev <rev>           print the given revision
   140     -r, --rev <rev>           print the given revision
   141 
   141 
   142 clone [-U] <source> [dest]::
   142 clone [options] <source> [dest]::
   143     Create a copy of an existing repository in a new directory.
   143     Create a copy of an existing repository in a new directory.
   144 
   144 
   145     If no destination directory name is specified, it defaults to the
   145     If no destination directory name is specified, it defaults to the
   146     basename of the source.
   146     basename of the source.
   147 
   147 
   148     The source is added to the new repository's .hg/hgrc file to be used in
   148     The location of the source is added to the new repository's
   149     future pulls.
   149     .hg/hgrc file, as the default to be used for future pulls.
   150 
   150 
   151     For efficiency, hardlinks are used for cloning whenever the
   151     For efficiency, hardlinks are used for cloning whenever the source
   152     source and destination are on the same filesystem.
   152     and destination are on the same filesystem.  Some filesystems,
       
   153     such as AFS, implement hardlinking incorrectly, but do not report
       
   154     errors.  In these cases, use the --pull option to avoid
       
   155     hardlinking.
   153 
   156 
   154     options:
   157     options:
   155     -U, --noupdate   do not update the new working directory
   158     -U, --noupdate   do not update the new working directory
       
   159     --pull           use pull protocol to copy metadata
   156     -e, --ssh        specify ssh command to use
   160     -e, --ssh        specify ssh command to use
   157     --remotecmd      specify hg command to run on the remote side
   161     --remotecmd      specify hg command to run on the remote side
   158 
   162 
   159 commit [options] [files...]::
   163 commit [options] [files...]::
   160     Commit changes to the given files into the repository.
   164     Commit changes to the given files into the repository.