nix-prefetch-{bzr,hg,svn}: print fetched revision

This commit is contained in:
Benno Fünfstück
2014-06-11 14:42:39 +02:00
parent be25ce8f58
commit 063efadd69
3 changed files with 4 additions and 0 deletions
@@ -51,6 +51,7 @@ if test -z "$finalPath"; then
hg archive -q -y -r "$rev" --cwd $tmpClone $tmpArchive
rm -f $tmpArchive/.hg_archival.txt
echo "hg revision is $(cd $tmpClone; hg id -r "$rev" -i)"
# Compute the hash.
hash=$(nix-hash --type $hashType $hashFormat $tmpArchive)