nixpkgs/pkgs/build-support/fetchhg/builder.sh

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

9 lines
248 B
Bash
Raw Normal View History

if [ -e .attrs.sh ]; then source .attrs.sh; fi
source $stdenv/setup
echo "getting $url${rev:+ ($rev)} into $out"
2014-05-29 07:06:13 +00:00
hg clone --insecure "$url" hg-clone
hg archive -q$subrepoClause -y ${rev:+-r "$rev"} --cwd hg-clone $out
rm -f $out/.hg_archival.txt