From 4bfbc1aeff1184c96e8732fac4261eb1ec0f655a Mon Sep 17 00:00:00 2001 From: Dominik Picheta Date: Sat, 27 Jul 2013 00:03:38 +0100 Subject: [PATCH] Improved efficiency of hg cloning. Added ``-r tip`` which is similar to git's ``--depth 1``. --- download.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/download.nim b/download.nim index 18ed3ba..e9750c4 100644 --- a/download.nim +++ b/download.nim @@ -41,7 +41,7 @@ proc doClone(meth: TDownloadMethod, url, downloadDir: string) = of TDownloadMethod.Git: doCmd("git clone --depth 1 " & url & " " & downloadDir) of TDownloadMethod.Hg: - doCmd("hg clone " & url & " " & downloadDir) + doCmd("hg clone -r tip " & url & " " & downloadDir) proc getTagsList(dir: string, meth: TDownloadMethod): seq[string] = cd dir: