Mercurial > public > mercurial-scm > hg
comparison mercurial/commands.py @ 15174:9f1a08c00931
clone: improve help on -r/-b and tags
author | Matt Mackall <mpm@selenic.com> |
---|---|
date | Fri, 30 Sep 2011 11:27:59 -0500 |
parents | 395ca8cd2669 |
children | 282db9102c43 |
comparison
equal
deleted
inserted
replaced
15173:3d27a8ff895f | 15174:9f1a08c00931 |
---|---|
1044 | 1044 |
1045 It is possible to specify an ``ssh://`` URL as the destination, but no | 1045 It is possible to specify an ``ssh://`` URL as the destination, but no |
1046 ``.hg/hgrc`` and working directory will be created on the remote side. | 1046 ``.hg/hgrc`` and working directory will be created on the remote side. |
1047 Please see :hg:`help urls` for important details about ``ssh://`` URLs. | 1047 Please see :hg:`help urls` for important details about ``ssh://`` URLs. |
1048 | 1048 |
1049 A set of changesets (tags, or branch names) to pull may be specified | 1049 To pull only a subset of changesets, specify one or more revisions |
1050 by listing each changeset (tag, or branch name) with -r/--rev. | 1050 identifiers with -r/--rev or branches with -b/--branch. The |
1051 If -r/--rev is used, the cloned repository will contain only a subset | 1051 resulting clone will contain only the specified changesets and |
1052 of the changesets of the source repository. Only the set of changesets | 1052 their ancestors. These options (or 'clone src#rev dest') imply |
1053 defined by all -r/--rev options (including all their ancestors) | 1053 --pull, even for local source repositories. Note that specifying a |
1054 will be pulled into the destination repository. | 1054 tag will include the tagged changeset but not the changeset |
1055 No subsequent changesets (including subsequent tags) will be present | 1055 containing the tag. |
1056 in the destination. | |
1057 | |
1058 Using -r/--rev (or 'clone src#rev dest') implies --pull, even for | |
1059 local source repositories. | |
1060 | 1056 |
1061 For efficiency, hardlinks are used for cloning whenever the source | 1057 For efficiency, hardlinks are used for cloning whenever the source |
1062 and destination are on the same filesystem (note this applies only | 1058 and destination are on the same filesystem (note this applies only |
1063 to the repository data, not to the working directory). Some | 1059 to the repository data, not to the working directory). Some |
1064 filesystems, such as AFS, implement hardlinking incorrectly, but | 1060 filesystems, such as AFS, implement hardlinking incorrectly, but |