Bug 1406006 - Get well formatted commit hash and commit date when building geckodriver. r?whimboo draft
authorJeremy Lempereur <jeremy.lempereur@gmail.com>
Sun, 17 Jun 2018 09:38:23 +0200
changeset 808032 94418706509827255efbd8088beb5c2efc1e4677
parent 808026 d9ad37d3b0b24e5b343dbc41781808655f0c0a80
push id113256
push userbmo:jeremy.lempereur@gmail.com
push dateSun, 17 Jun 2018 07:39:15 +0000
reviewerswhimboo
bugs1406006
milestone62.0a1
Bug 1406006 - Get well formatted commit hash and commit date when building geckodriver. r?whimboo 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>