From ea23ea00e4fd2b834b06313db2e4604379ab002e Mon Sep 17 00:00:00 2001 From: Rob Vermaas Date: Wed, 28 May 2014 10:40:21 +0200 Subject: Make fetchhg do the same as nix-prefetch-hg, use hg archive. Fixes #2781. --- pkgs/build-support/fetchhg/builder.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'pkgs/build-support/fetchhg') diff --git a/pkgs/build-support/fetchhg/builder.sh b/pkgs/build-support/fetchhg/builder.sh index 73ec7ec0b36..6e9fbab791f 100644 --- a/pkgs/build-support/fetchhg/builder.sh +++ b/pkgs/build-support/fetchhg/builder.sh @@ -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 -- cgit 1.4.1