diff --git a/src/root/reproduce.tt b/src/root/reproduce.tt index 1d5b5b9f..6e277c1a 100644 --- a/src/root/reproduce.tt +++ b/src/root/reproduce.tt @@ -110,7 +110,9 @@ if ! [ -d "$inputDir" ]; then requireCommand hg inputDirTmp="$inputDir.tmp" rm -rf "$inputDirTmp" - hg clone '[% input.uri %]' "$inputDirTmp" -r '[% input.revision %]' + hg clone '[% input.uri %]' "$inputDirTmp" + (cd "$inputDirTmp" && hg update '[% input.revision %]') + revCount="$(cd "$inputDirTmp" && (hg log -r '[% input.revision %]' --template "{rev}"))" rm -rf "$inputDirTmp/.hg" mv "$inputDirTmp" "$inputDir" fi