equal
deleted
inserted
replaced
1087 d) the changeset specified with -r |
1087 d) the changeset specified with -r |
1088 e) the tipmost head specified with -b |
1088 e) the tipmost head specified with -b |
1089 f) the tipmost head specified with the url#branch source syntax |
1089 f) the tipmost head specified with the url#branch source syntax |
1090 g) the tipmost head of the default branch |
1090 g) the tipmost head of the default branch |
1091 h) tip |
1091 h) tip |
|
1092 |
|
1093 Examples: |
|
1094 |
|
1095 - clone a remote repository to a new directory named hg/:: |
|
1096 |
|
1097 hg clone http://selenic.com/hg |
|
1098 |
|
1099 - create a lightweight local clone:: |
|
1100 |
|
1101 hg clone project/ project-feature/ |
|
1102 |
|
1103 - clone from an absolute path on an ssh server (note double-slash):: |
|
1104 |
|
1105 hg clone ssh://user@server//home/projects/alpha/ |
|
1106 |
|
1107 - do a high-speed clone over a LAN while checking out a |
|
1108 specified version:: |
|
1109 |
|
1110 hg clone --uncompressed http://server/repo -u 1.5 |
|
1111 |
|
1112 - create a repository without changesets after a particular revision:: |
|
1113 |
|
1114 hg clone -r 04e544 experimental/ good/ |
|
1115 |
|
1116 - clone (and track) a particular named branch:: |
|
1117 |
|
1118 hg clone http://selenic.com/hg#stable |
1092 |
1119 |
1093 See :hg:`help urls` for details on specifying URLs. |
1120 See :hg:`help urls` for details on specifying URLs. |
1094 |
1121 |
1095 Returns 0 on success. |
1122 Returns 0 on success. |
1096 """ |
1123 """ |