mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-27 22:44:56 +00:00

This makes it match the behaviour of fetchgit and fetchsvn, so it's easier to write scripts that support all of them.
10 lines
199 B
Bash
10 lines
199 B
Bash
source $stdenv/setup
|
|
header "getting $url${rev:+ ($rev)} into $out"
|
|
|
|
hg clone --insecure "$url" hg-clone
|
|
|
|
hg archive -q -y ${rev:+-r "$rev"} --cwd hg-clone $out
|
|
rm -f $out/.hg_archival.txt
|
|
|
|
stopNest
|