Bug 1392700 - Initialize repository using latest requirements; r?aki draft
authorGregory Szorc <gps@mozilla.com>
Tue, 22 Aug 2017 10:34:29 -0700
changeset 650631 f1ade7aee54f042feabf6f9a61c819d9a35cf350
parent 650630 2100f4fe2955c8e1ec97e90305bed4c5e5e7b985
child 650632 eb6915ab54fc0adfe5f02a894ce74814ed820443
push id75458
push userbmo:gps@mozilla.com
push dateTue, 22 Aug 2017 17:44:03 +0000
reviewersaki
bugs1392700, 857853
milestone57.0a1
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
testing/mozharness/test/helper_files/.hgrc
testing/mozharness/test/helper_files/init_hgrepo.sh
--- 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"