Make fetchhg do the same as nix-prefetch-hg, use hg archive. Fixes #2781.

This commit is contained in:
Rob Vermaas 2014-05-28 10:40:21 +02:00
parent 625b8f310f
commit ea23ea00e4

View file

@ -2,8 +2,9 @@ source $stdenv/setup
header "getting $url${tag:+ ($tag)} into $out"
hg clone --insecure ${tag:+-r "$tag"} "$url" "$out"
hg clone --insecure ${tag:+-r "$tag"} "$url" hg-clone
rm -rf "$out/.hg"
hg archive -q -y ${tag:+-r "$tag"} --cwd hg-clone $out
rm -f $out/.hg_archival.txt
stopNest