1336 source and destination are on the same filesystem (note this |
1336 source and destination are on the same filesystem (note this |
1337 applies only to the repository data, not to the working |
1337 applies only to the repository data, not to the working |
1338 directory). Some filesystems, such as AFS, implement hardlinking |
1338 directory). Some filesystems, such as AFS, implement hardlinking |
1339 incorrectly, but do not report errors. In these cases, use the |
1339 incorrectly, but do not report errors. In these cases, use the |
1340 --pull option to avoid hardlinking. |
1340 --pull option to avoid hardlinking. |
1341 |
|
1342 In some cases, you can clone repositories and the working |
|
1343 directory using full hardlinks with :: |
|
1344 |
|
1345 $ cp -al REPO REPOCLONE |
|
1346 |
|
1347 This is the fastest way to clone, but it is not always safe. The |
|
1348 operation is not atomic (making sure REPO is not modified during |
|
1349 the operation is up to you) and you have to make sure your |
|
1350 editor breaks hardlinks (Emacs and most Linux Kernel tools do |
|
1351 so). Also, this is not compatible with certain extensions that |
|
1352 place their metadata under the .hg directory, such as mq. |
|
1353 |
1341 |
1354 Mercurial will update the working directory to the first applicable |
1342 Mercurial will update the working directory to the first applicable |
1355 revision from this list: |
1343 revision from this list: |
1356 |
1344 |
1357 a) null if -U or the source repository has no changesets |
1345 a) null if -U or the source repository has no changesets |