From 5e4f41603c465bc87b9887977041c5e454fccfc1 Mon Sep 17 00:00:00 2001 From: pxgamer Date: Fri, 15 Dec 2017 10:28:53 +0000 Subject: [PATCH 1/6] hg-clone: add page --- pages/common/hg-clone.md | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 pages/common/hg-clone.md diff --git a/pages/common/hg-clone.md b/pages/common/hg-clone.md new file mode 100644 index 0000000000..174d10245f --- /dev/null +++ b/pages/common/hg-clone.md @@ -0,0 +1,23 @@ +# hg clone + +> Create a copy of an existing repository in a new directory. + +- Clone a repository to a specified directory: + +`hg clone {{remote_repository_source}} {{destination_path}}` + +- Clone a repository on a specific branch: + +`hg clone --branch {{branch}} {{remote_repository_source}}` + +- Clone a repository with a clean working directory: + +`hg clone --noupdate {{remote_repository_source}}` + +- Clone a repository to a specific revision, tag or branch: + +`hg clone --updaterev {{revision}} {{remote_repository_source}}` + +- Clone a repository up to a specific revision without any newer history: + +`hg clone --rev {{revision}} {{remote_repository_source}}` From 7b5ca58d53ed398bbb42f84b4b6e2e9ddf1aa014 Mon Sep 17 00:00:00 2001 From: pxgamer Date: Fri, 15 Dec 2017 10:29:28 +0000 Subject: [PATCH 2/6] Referenced hg-clone from the `hg` command --- pages/common/hg.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pages/common/hg.md b/pages/common/hg.md index d3531aa933..476af6bfb8 100644 --- a/pages/common/hg.md +++ b/pages/common/hg.md @@ -1,7 +1,7 @@ # hg > A command line interface for Mercurial, a distributed source control management system. -> See the `hg-add` and `hg-commit` pages for additional information. +> See the `hg-clone`, `hg-add` and `hg-commit` pages for additional information. - Execute Mercurial command: From 8402262b06453736ff9b2635c767cfbfab1dd83a Mon Sep 17 00:00:00 2001 From: pxgamer Date: Mon, 18 Dec 2017 12:08:53 +0000 Subject: [PATCH 3/6] Update references in hg.md page --- pages/common/hg.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pages/common/hg.md b/pages/common/hg.md index 476af6bfb8..a6b74ff8fa 100644 --- a/pages/common/hg.md +++ b/pages/common/hg.md @@ -1,7 +1,7 @@ # hg > A command line interface for Mercurial, a distributed source control management system. -> See the `hg-clone`, `hg-add` and `hg-commit` pages for additional information. +> See the `hg-add`, `hg-commit` and other pages for additional information. - Execute Mercurial command: From f0d04fc6460f0a4ea3d9cb3add38179b5e2ffa40 Mon Sep 17 00:00:00 2001 From: pxgamer Date: Mon, 18 Dec 2017 12:11:06 +0000 Subject: [PATCH 4/6] Applied changes to the hg-clone page --- pages/common/hg-clone.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pages/common/hg-clone.md b/pages/common/hg-clone.md index 174d10245f..d7a5200a34 100644 --- a/pages/common/hg-clone.md +++ b/pages/common/hg-clone.md @@ -6,15 +6,15 @@ `hg clone {{remote_repository_source}} {{destination_path}}` -- Clone a repository on a specific branch: +- Clone a repository to the head of a specific branch, ignoring later commits: `hg clone --branch {{branch}} {{remote_repository_source}}` -- Clone a repository with a clean working directory: +- Clone a repository with only the .hg directory, without checking out files: `hg clone --noupdate {{remote_repository_source}}` -- Clone a repository to a specific revision, tag or branch: +- Clone a repository to a specific revision, tag or branch, keeping the entire history: `hg clone --updaterev {{revision}} {{remote_repository_source}}` From 0a23f1ff03dd7aa7a7fa397a9840608eb658570a Mon Sep 17 00:00:00 2001 From: pxgamer Date: Mon, 18 Dec 2017 12:12:08 +0000 Subject: [PATCH 5/6] Changed wording --- pages/common/hg.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pages/common/hg.md b/pages/common/hg.md index a6b74ff8fa..b85b1de811 100644 --- a/pages/common/hg.md +++ b/pages/common/hg.md @@ -1,7 +1,7 @@ # hg > A command line interface for Mercurial, a distributed source control management system. -> See the `hg-add`, `hg-commit` and other pages for additional information. +> See `hg-add`, `hg-commit` and other pages for additional information. - Execute Mercurial command: From b67ac7a2df07ef71b5efa2e9c1c3f97b3ff10dba Mon Sep 17 00:00:00 2001 From: Agniva De Sarker Date: Mon, 18 Dec 2017 17:47:57 +0530 Subject: [PATCH 6/6] Clarify .hg directory --- pages/common/hg-clone.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pages/common/hg-clone.md b/pages/common/hg-clone.md index d7a5200a34..aa8131fa09 100644 --- a/pages/common/hg-clone.md +++ b/pages/common/hg-clone.md @@ -10,7 +10,7 @@ `hg clone --branch {{branch}} {{remote_repository_source}}` -- Clone a repository with only the .hg directory, without checking out files: +- Clone a repository with only the ".hg" directory, without checking out files: `hg clone --noupdate {{remote_repository_source}}`