reproduce.tt: Create the checkout dir before an hg clone

For some reason, hg clone from a local (path-based) repo will fail if
the parent directory of the destination directory doesn't exist (though
it succeeds when cloning from an http repo).

Signed-off-by: Shea Levy <shea@shealevy.com>
This commit is contained in:
Shea Levy 2013-05-30 13:31:53 -04:00
parent 1277a8fc1c
commit 8e716ff062

View file

@ -110,6 +110,7 @@ if ! [ -d "$inputDir" ]; then
requireCommand hg
inputDirTmp="$inputDir.tmp"
rm -rf "$inputDirTmp"
mkdir -p "$inputDirTmp"
hg clone '[% input.uri %]' "$inputDirTmp"
(cd "$inputDirTmp" && hg update '[% input.revision %]')
revCount="$(cd "$inputDirTmp" && (hg log -r '[% input.revision %]' --template "{rev}"))"