summary refs log tree commit diff
path: root/pkgs/build-support/fetchhg/builder.sh
blob: 847f18fa59759026eb8d2710b7ea792a5dd1ea0a (plain) (blame)
1
2
3
4
5
6
7
8
9
source $stdenv/setup
header "getting $url${rev:+ ($rev)} into $out"

hg clone --insecure "$url" hg-clone

hg archive -q$subrepoClause -y ${rev:+-r "$rev"} --cwd hg-clone $out
rm -f $out/.hg_archival.txt

stopNest