comparison doc/hg.1.txt @ 485:c5705ab9cebd

[PATCH] add clone command -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 [PATCH] add clone command Add clone command. Mark with-source version of "init" as deprecated. manifest hash: 3c31263474977c3d8303f45f71c44f7b7e10e97e -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.0 (GNU/Linux) iD8DBQFCvzhOywK+sNU5EO8RAmh+AJwIlRfX143oxKShgPWF2dbDvCuH3gCbBrAW isIHptwVRX8pcA0lU638pHo= =ZoQy -----END PGP SIGNATURE-----
author mpm@selenic.com
date Sun, 26 Jun 2005 15:20:46 -0800
parents 934279f3ca53
children 2ad41189bee5 e94cebc60d96
comparison
equal deleted inserted replaced
484:934279f3ca53 485:c5705ab9cebd
70 -c, --changeset list the changeset 70 -c, --changeset list the changeset
71 -n, --number list the revision number (default) 71 -n, --number list the revision number (default)
72 72
73 cat <file> [revision]:: 73 cat <file> [revision]::
74 Output the given revision or tip of the specified file to stdout. 74 Output the given revision or tip of the specified file to stdout.
75
76 clone [-U] <source> [dest]::
77 Create a new copy of an existing repository.
78
79 If the specified source is on the same filesystem, the repository
80 will be copied via hardlinks. This is the fastest and most
81 space-efficient mode of operation.
82
83 If the destination directory is not specified, it defaults to the
84 current directory.
85
86 If the destination is specified, but does not exist, it is created.
87
88 The source is added to .hg/hgrc in the new copy as the default for
89 future pulls.
90
91 options:
92 -U, --no-update do not update the new working directory
75 93
76 commit [-A -t -l <file> -t <text> -u <user> -d <datecode>] [files...]:: 94 commit [-A -t -l <file> -t <text> -u <user> -d <datecode>] [files...]::
77 Commit all changed files in the working dir to the repository. This uses 95 Commit all changed files in the working dir to the repository. This uses
78 the EDITOR environment variable to bring up an editor to add a commit 96 the EDITOR environment variable to bring up an editor to add a commit
79 comment. 97 comment.
132 aliases: patch 150 aliases: patch
133 151
134 init [-u] [source]:: 152 init [-u] [source]::
135 Initialize a repository in the current directory. 153 Initialize a repository in the current directory.
136 154
155 NOTE: The following use is deprecated, and will be removed soon;
156 use the "hg clone" command instead.
157
137 If a source is specified, pull that source into the repository. 158 If a source is specified, pull that source into the repository.
138 This source is added to .hg/hgrc as the default for future pulls 159 This source is added to .hg/hgrc as the default for future pulls
139 in this repository. 160 in this repository.
140 161
141 If the specified source is on the same filesystem, the repository 162 If the specified source is on the same filesystem, the repository