Improved efficiency of hg cloning.
Added ``-r tip`` which is similar to git's ``--depth 1``.
This commit is contained in:
parent
07b7f46fd6
commit
4bfbc1aeff
1 changed files with 1 additions and 1 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue