Bug 1406006 - Get well formatted commit hash and commit date when building geckodriver. r=ato
authorJeremy Lempereur <jeremy.lempereur@gmail.com>
Sun, 17 Jun 2018 09:38:23 +0200
changeset 422821 4cdab1b804e8038f9844ae71a3769cf88c50ad55
parent 422820 5eb03fb6bb4fa39b3b22ac18eab3509992fd9f5b
child 422822 97eb512f532b933d8b5b72f160815e0727229890
child 422833 8d9823a8bb3a33c559fa730b0990dfc2b3a16f50
push id34152
push usercsabou@mozilla.com
push dateMon, 18 Jun 2018 15:51:00 +0000
treeherdermozilla-central@97eb512f532b [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersato
bugs1406006
milestone62.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1406006 - Get well formatted commit hash and commit date when building geckodriver. r=ato MozReview-Commit-ID: 7h6RuMseOYA
testing/geckodriver/build.rs
--- a/testing/geckodriver/build.rs
+++ b/testing/geckodriver/build.rs
@@ -27,25 +27,25 @@ fn main() {
     writeln!(
         fh,
         "const COMMIT_DATE: Option<&'static str> = {:?};",
         commit_date()
     ).unwrap();
 }
 
 fn commit_hash() -> Option<String> {
-    exec(&"hg", &["log", "-r.", "-T '{node|short}'"]).or_else(
+    exec(&"hg", &["log", "-r.", "-T{node|short}"]).or_else(
         || {
             exec(&"git", &["rev-parse", "HEAD"]).and_then(hg2git_sha)
         },
     )
 }
 
 fn commit_date() -> Option<String> {
-    exec(&"hg", &["log", "-r.", "-T '{date|isodate}'"]).or_else(|| {
+    exec(&"hg", &["log", "-r.", "-T{date|isodate}"]).or_else(|| {
         exec(
             &"git",
             &["log", "-1", "--date=short", "--pretty=format:%cd"],
         )
     })
 }
 
 fn exec<S, I>(program: S, args: I) -> Option<String>