Bug 1392700 - Initialize repository using latest requirements. r=aki, a=test-only
authorGregory Szorc <gps@mozilla.com>
Tue, 22 Aug 2017 10:34:29 -0700
changeset 423728 dd7757fd49ffb0d1f987dda5438465f7d2e58d18
parent 423727 da38cb67c52b802a0f0a972c68b3a117cee80742
child 423729 502bf438bc3b62dca9565edeb6896f7324a9ca75
push id1517
push userjlorenzo@mozilla.com
push dateThu, 14 Sep 2017 16:50:54 +0000
treeherdermozilla-release@3b41fd564418 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersaki, test-only
bugs1392700, 857853
milestone56.0
Bug 1392700 - Initialize repository using latest requirements. r=aki, a=test-only 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"