1 if [ -e "$NIX_ATTRS_SH_FILE" ]; then .
"$NIX_ATTRS_SH_FILE"; elif [ -f .attrs.sh
]; then . .attrs.sh
; fi
3 echo "getting $url${rev:+ ($rev)} into $out"
5 hg clone
--insecure "$url" hg-clone
7 hg archive
-q$subrepoClause -y ${rev:+-r "$rev"} --cwd hg-clone
$out
8 rm -f $out/.hg_archival.txt