Bug 1392700 - Initialize repository using latest requirements; r?aki
We use `hg init` to create the directory. Because this is what
typically occurs.
We also remove the disabling of "dotencode" in the hgrc. This was added
in https://hg.mozilla.org/build/mozharness/rev/b1dbc0f56ff8 (
bug 857853)
for reasons that are unclear to me. We should never disable dotencode
because it may make some repositories not clonable on Windows
filesystems.
Disabling dotencode will also interfere with the latest version of
robustcheckout, which requires its presence.
MozReview-Commit-ID: 35qBsgwp0uW
--- a/testing/mozharness/test/helper_files/.hgrc
+++ b/testing/mozharness/test/helper_files/.hgrc
@@ -4,17 +4,14 @@ mq =
rebase =
share =
convert =
transplant =
bookmarks =
pager =
purge =
-[format]
-dotencode = 0
-
[ui]
username = Client Builder <cltbld@mozilla.com>
merge = internal:merge
[phases]
publish = False
--- a/testing/mozharness/test/helper_files/init_hgrepo.sh
+++ b/testing/mozharness/test/helper_files/init_hgrepo.sh
@@ -2,19 +2,18 @@
# Set up an hg repo for testing
dest=$1
if [ -z "$dest" ]; then
echo You must specify a destination directory 1>&2
exit 1
fi
rm -rf $dest
-mkdir $dest
+hg init $dest
cd $dest
-hg init
echo "Hello world $RANDOM" > hello.txt
hg add hello.txt
hg commit -m "Adding hello"
hg branch branch2 > /dev/null
echo "So long, farewell" >> hello.txt
hg commit -m "Changing hello on branch"