D863: commands: remove suggestion to clone via `cp -al`

indygreg (Gregory Szorc) phabricator at mercurial-scm.org
Sun Oct 1 10:31:38 UTC 2017


indygreg created this revision.
Herald added a subscriber: mercurial-devel.
Herald added a reviewer: hg-reviewers.

REVISION SUMMARY
  This was added in https://phab.mercurial-scm.org/rHG2df98f6166458ed16534d993a75a738f440da8b9 in 2006. This may be possible but it
  seems like a bad idea to even suggest it.

REPOSITORY
  rHG Mercurial

REVISION DETAIL
  https://phab.mercurial-scm.org/D863

AFFECTED FILES
  mercurial/commands.py

CHANGE DETAILS

diff --git a/mercurial/commands.py b/mercurial/commands.py
--- a/mercurial/commands.py
+++ b/mercurial/commands.py
@@ -1339,18 +1339,6 @@
       incorrectly, but do not report errors. In these cases, use the
       --pull option to avoid hardlinking.
 
-      In some cases, you can clone repositories and the working
-      directory using full hardlinks with ::
-
-        $ cp -al REPO REPOCLONE
-
-      This is the fastest way to clone, but it is not always safe. The
-      operation is not atomic (making sure REPO is not modified during
-      the operation is up to you) and you have to make sure your
-      editor breaks hardlinks (Emacs and most Linux Kernel tools do
-      so). Also, this is not compatible with certain extensions that
-      place their metadata under the .hg directory, such as mq.
-
       Mercurial will update the working directory to the first applicable
       revision from this list:
 



To: indygreg, #hg-reviewers
Cc: mercurial-devel


More information about the Mercurial-devel mailing list