##// END OF EJS Templates
Expand clone help with hardlink information
Inaky Perez-Gonzalez -
r2762:2df98f61 default
parent child Browse files
Show More
@@ -997,10 +997,21 b' def clone(ui, source, dest=None, **opts)'
997 997 .hg/hgrc file, as the default to be used for future pulls.
998 998
999 999 For efficiency, hardlinks are used for cloning whenever the source
1000 and destination are on the same filesystem. Some filesystems,
1001 such as AFS, implement hardlinking incorrectly, but do not report
1002 errors. In these cases, use the --pull option to avoid
1003 hardlinking.
1000 and destination are on the same filesystem (note this applies only
1001 to the repository data, not to the checked out files). Some
1002 filesystems, such as AFS, implement hardlinking incorrectly, but
1003 do not report errors. In these cases, use the --pull option to
1004 avoid hardlinking.
1005
1006 You can safely clone repositories and checked out files using full
1007 hardlinks with
1008
1009 $ cp -al REPO REPOCLONE
1010
1011 which is the fastest way to clone. However, the operation is not
1012 atomic (making sure REPO is not modified during the operation is
1013 up to you) and you have to make sure your editor breaks hardlinks
1014 (Emacs and most Linux Kernel tools do so).
1004 1015
1005 1016 See pull for valid source format details.
1006 1017
@@ -2929,7 +2940,7 b' table = {'
2929 2940 (clone,
2930 2941 [('U', 'noupdate', None, _('do not update the new working directory')),
2931 2942 ('r', 'rev', [],
2932 _('a changeset you would like to have after cloning')),
2943 _('a changeset you would like to have after cloning (note this forces the usage of --pull)')),
2933 2944 ('', 'pull', None, _('use pull protocol to copy metadata')),
2934 2945 ('', 'uncompressed', None,
2935 2946 _('use uncompressed transfer (fast over LAN)')),
General Comments 0
You need to be logged in to leave comments. Login now