mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-22 17:55:50 +00:00
Bug 1516646 - Write the Gecko mercurial revision into captures as well. r=jrmuizel
Differential Revision: https://phabricator.services.mozilla.com/D15474 --HG-- extra : moz-landing-system : lando
This commit is contained in:
parent
b8f683c47e
commit
1b6a03b80f
@ -1654,6 +1654,10 @@ pub extern "C" fn wr_api_capture(
|
||||
Ok(mut file) => {
|
||||
let revision = include_bytes!("../revision.txt");
|
||||
file.write(revision).unwrap();
|
||||
// The Gecko HG revision is available at compile time
|
||||
if let Some(moz_revision) = option_env!("GECKO_HEAD_REV") {
|
||||
writeln!(file, "mozilla-central {}", moz_revision).unwrap();
|
||||
}
|
||||
}
|
||||
Err(e) => {
|
||||
warn!("Unable to create path '{:?}' for capture: {:?}", path, e);
|
||||
|
Loading…
Reference in New Issue
Block a user