diff --git a/mercurial/commands.py b/mercurial/commands.py index 04e5449e25dce402bef8194c359b1499655c96da_bWVyY3VyaWFsL2NvbW1hbmRzLnB5..d3b42e96cfcf2ce70aec5643ee2e0b2dab64a192_bWVyY3VyaWFsL2NvbW1hbmRzLnB5 100644 --- a/mercurial/commands.py +++ b/mercurial/commands.py @@ -1090,6 +1090,33 @@ g) the tipmost head of the default branch h) tip + Examples: + + - clone a remote repository to a new directory named hg/:: + + hg clone http://selenic.com/hg + + - create a lightweight local clone:: + + hg clone project/ project-feature/ + + - clone from an absolute path on an ssh server (note double-slash):: + + hg clone ssh://user@server//home/projects/alpha/ + + - do a high-speed clone over a LAN while checking out a + specified version:: + + hg clone --uncompressed http://server/repo -u 1.5 + + - create a repository without changesets after a particular revision:: + + hg clone -r 04e544 experimental/ good/ + + - clone (and track) a particular named branch:: + + hg clone http://selenic.com/hg#stable + See :hg:`help urls` for details on specifying URLs. Returns 0 on success.