about summary refs log tree commit diff
path: root/nixpkgs/pkgs/build-support/fetchhg/builder.sh
blob: 1ce294757713c12b915c93e139ec0042946fbcbf (plain) (blame)
1
2
3
4
5
6
7
8
if [ -e .attrs.sh ]; then source .attrs.sh; fi
source $stdenv/setup
echo "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