summary refs log tree commit diff
path: root/pkgs/build-support/fetchhg/nix-prefetch-hg
diff options
context:
space:
mode:
authorBenno Fünfstück <benno.fuenfstueck@gmail.com>2014-06-11 14:42:39 +0200
committerBenno Fünfstück <benno.fuenfstueck@gmail.com>2014-06-11 14:42:39 +0200
commit063efadd69ba56392be1bdd31872bed27becc92d (patch)
tree3f1e692c7b3ff719a2d3fd373860e01ca221421c /pkgs/build-support/fetchhg/nix-prefetch-hg
parentbe25ce8f5837eed6ada3c0da815b6fa189798c11 (diff)
downloadnixpkgs-063efadd69ba56392be1bdd31872bed27becc92d.tar
nixpkgs-063efadd69ba56392be1bdd31872bed27becc92d.tar.gz
nixpkgs-063efadd69ba56392be1bdd31872bed27becc92d.tar.bz2
nixpkgs-063efadd69ba56392be1bdd31872bed27becc92d.tar.lz
nixpkgs-063efadd69ba56392be1bdd31872bed27becc92d.tar.xz
nixpkgs-063efadd69ba56392be1bdd31872bed27becc92d.tar.zst
nixpkgs-063efadd69ba56392be1bdd31872bed27becc92d.zip
nix-prefetch-{bzr,hg,svn}: print fetched revision
Diffstat (limited to 'pkgs/build-support/fetchhg/nix-prefetch-hg')
-rwxr-xr-xpkgs/build-support/fetchhg/nix-prefetch-hg1
1 files changed, 1 insertions, 0 deletions
diff --git a/pkgs/build-support/fetchhg/nix-prefetch-hg b/pkgs/build-support/fetchhg/nix-prefetch-hg
index f1f648f4aeb..075dbc9c367 100755
--- a/pkgs/build-support/fetchhg/nix-prefetch-hg
+++ b/pkgs/build-support/fetchhg/nix-prefetch-hg
@@ -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)