Show More
@@ -139,20 +139,24 b' cat [options] <file ...>::' | |||||
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 [ |
|
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 |
|
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 |
|
|
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 |
@@ -629,7 +629,7 b' def clone(ui, source, dest=None, **opts)' | |||||
629 | other = hg.repository(ui, source) |
|
629 | other = hg.repository(ui, source) | |
630 |
|
630 | |||
631 | copy = False |
|
631 | copy = False | |
632 | if other.dev() != -1: |
|
632 | if not opts['pull'] and other.dev() != -1: | |
633 | abspath = os.path.abspath(source) |
|
633 | abspath = os.path.abspath(source) | |
634 | copy = True |
|
634 | copy = True | |
635 |
|
635 | |||
@@ -1782,6 +1782,7 b' table = {' | |||||
1782 | (clone, |
|
1782 | (clone, | |
1783 | [('U', 'noupdate', None, 'skip update after cloning'), |
|
1783 | [('U', 'noupdate', None, 'skip update after cloning'), | |
1784 | ('e', 'ssh', "", 'ssh command'), |
|
1784 | ('e', 'ssh', "", 'ssh command'), | |
|
1785 | ('', 'pull', None, 'use pull protocol to copy metadata'), | |||
1785 | ('', 'remotecmd', "", 'remote hg command')], |
|
1786 | ('', 'remotecmd', "", 'remote hg command')], | |
1786 | 'hg clone [OPTION]... SOURCE [DEST]'), |
|
1787 | 'hg clone [OPTION]... SOURCE [DEST]'), | |
1787 | "^commit|ci": |
|
1788 | "^commit|ci": |
General Comments 0
You need to be logged in to leave comments.
Login now