diff --git a/test/e2e/assets/hg-repos/README.md b/test/e2e/assets/hg-repos/README.md new file mode 100644 index 00000000..ce1330fe --- /dev/null +++ b/test/e2e/assets/hg-repos/README.md @@ -0,0 +1,6 @@ +``build.sh`` assemble a mercurial repository and more, suitable for testing the hg +fetcher cache feature: + +- A base repository (repo) +- A bundle with an extra changeset +- A json file with the changeset ids we need in the test, and the bundle filename diff --git a/test/e2e/assets/hg-repos/asset.tgz b/test/e2e/assets/hg-repos/asset.tgz new file mode 100644 index 00000000..0f4cdca9 Binary files /dev/null and b/test/e2e/assets/hg-repos/asset.tgz differ diff --git a/test/e2e/assets/hg-repos/build.sh b/test/e2e/assets/hg-repos/build.sh new file mode 100755 index 00000000..bc9f2695 --- /dev/null +++ b/test/e2e/assets/hg-repos/build.sh @@ -0,0 +1,44 @@ +#!/bin/bash + +rm -rf build + +mkdir build +cd build + +mkdir repo +cd repo + +hg init . + +echo "content1" > file1.txt + +hg add file1.txt +hg commit -m "Added file1" +CSET1_ID=$(hg id --id) + +hg tag first-tag +hg phase -p + +hg topic "wip" +echo "content2" > file1.txt +hg commit -m "extra cset" +CSETX_ID=$(hg id --id) + +hg strip -r . + +BUNDLE=$(basename .hg/strip-backup/*-backup.hg) +mv .hg/strip-backup/$BUNDLE .. + +hg checkout 00000 + +cd .. + +cat > info.json <