Improved efficiency of hg cloning.

Added ``-r tip`` which is similar to git's ``--depth 1``.
This commit is contained in:
Dominik Picheta 2013-07-27 00:03:38 +01:00
commit 4bfbc1aeff

View file

@ -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: