##// END OF EJS Templates
Add --pull option to clone.
Bryan O'Sullivan -
r1281:84df9951 default
parent child Browse files
Show More
@@ -139,20 +139,24 b' cat [options] <file ...>::'
139 139 -o, --output <filespec> print output to file with formatted name
140 140 -r, --rev <rev> print the given revision
141 141
142 clone [-U] <source> [dest]::
142 clone [options] <source> [dest]::
143 143 Create a copy of an existing repository in a new directory.
144 144
145 145 If no destination directory name is specified, it defaults to the
146 146 basename of the source.
147 147
148 The source is added to the new repository's .hg/hgrc file to be used in
149 future pulls.
148 The location of the source is added to the new repository's
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
152 source and destination are on the same filesystem.
151 For efficiency, hardlinks are used for cloning whenever the source
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 157 options:
155 158 -U, --noupdate do not update the new working directory
159 --pull use pull protocol to copy metadata
156 160 -e, --ssh specify ssh command to use
157 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 629 other = hg.repository(ui, source)
630 630
631 631 copy = False
632 if other.dev() != -1:
632 if not opts['pull'] and other.dev() != -1:
633 633 abspath = os.path.abspath(source)
634 634 copy = True
635 635
@@ -1782,6 +1782,7 b' table = {'
1782 1782 (clone,
1783 1783 [('U', 'noupdate', None, 'skip update after cloning'),
1784 1784 ('e', 'ssh', "", 'ssh command'),
1785 ('', 'pull', None, 'use pull protocol to copy metadata'),
1785 1786 ('', 'remotecmd', "", 'remote hg command')],
1786 1787 'hg clone [OPTION]... SOURCE [DEST]'),
1787 1788 "^commit|ci":
General Comments 0
You need to be logged in to leave comments. Login now