servo/python/servo
bors-servo 51fd0e83e9
Auto merge of #26720 - camelid:real-version-hash, r=SimonSapin
Show the real commit hash for `./servo --version`, not the bundle hash

<!-- Please describe your changes on the following line: -->
Show the real commit hash of the build when run on a bundle commit, rather than showing the bundle's hash.

It gets the real commit hash by extracting it from the bundle commit message, which has the form `Shallow version of commit {sha1}`, where `{sha1}` is the real commit hash.

---
<!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `___` with appropriate data: -->
- [x] `./mach build -d` does not report any errors (edits Python code, no Rust changes)
- [X] `./mach test-tidy` does not report any errors
- [X] These changes fix #26386 (GitHub issue number if applicable)

<!-- Either: -->
- [ ] There are tests for these changes OR
- [X] These changes do not require tests because this only changes infrastructure

<!-- Also, please make sure that "Allow edits from maintainers" checkbox is checked, so that we can help you if you get stuck somewhere along the way.-->

<!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. -->
2020-06-06 11:40:22 -04:00
..
lints Run test-tidy on Windows 2019-11-21 09:56:39 +01:00
mutation Improve print statement compatibility with Python3 2019-10-16 00:22:06 +01:00
__init__.py Fix tidy issues with Python files in python/ 2015-06-02 19:51:41 -04:00
bootstrap.py Add void packages to mach bootstrap 2020-05-23 02:32:23 +04:30
bootstrap_commands.py Mach: rename default_toolchain to rust_toolchain 2020-01-02 14:20:18 +01:00
build_commands.py Add VCINSTALLDIR to the 'do not run within vcvarsall' check 2020-04-16 14:51:34 -07:00
command_base.py Use binary strings for compatibility with Python 3 2020-05-31 09:20:08 -07:00
devenv_commands.py mach + rustup: use the minimal profile and install rustc-dev 2020-01-02 15:48:11 +01:00
package_commands.py Fix file extension for Linux nightly 2020-05-14 11:27:20 -07:00
packages.py Upgrade clang to 9.0 on Windows. 2020-04-15 15:03:03 -04:00
post_build_commands.py Update surfman to 0.2 and remove glutin 2020-04-17 23:44:53 -05:00
servo-binary-formula.rb.in Change servo homepage link to https 2018-11-27 19:01:20 +01:00
testing_commands.py Run only a supported set of WPT test types by default. 2020-06-03 16:37:59 -04:00
util.py fix zip extraction for python 3 2020-02-07 17:56:30 +09:00
win32_toast.py Add proper Win32 notification for builds 2016-08-17 09:50:58 -04:00