commit 5fb5d7992bba987990f561b0ba53ce6dda0c978e parent c6f7e76335acd4e4803278ee8c320ffdccbe1b86 Author: Michael Froman <mjfroman@mac.com> Date: Wed, 17 Dec 2025 18:33:48 +0000 Bug 2004433 - add git support to get_build_file_changes.sh r=dbaker DONTBUILD Differential Revision: https://phabricator.services.mozilla.com/D275289 Diffstat:
| M | dom/media/webrtc/third_party_build/get_build_file_changes.sh | | | 28 | +++++++++++++++++++++++----- |
1 file changed, 23 insertions(+), 5 deletions(-)
diff --git a/dom/media/webrtc/third_party_build/get_build_file_changes.sh b/dom/media/webrtc/third_party_build/get_build_file_changes.sh @@ -5,8 +5,26 @@ # change in the generated moz.build files. This script is to ensure # that both are using the same set of files -hg status --change . \ - --include 'third_party/libwebrtc/**BUILD.gn' \ - --include 'third_party/libwebrtc/**/*.gni' \ - --include 'third_party/libwebrtc/.gn' \ - --include 'dom/media/webrtc/third_party_build/gn-configs/webrtc.json' +# since the output of this script is used by loop-ff.sh and +# elm_rebase.sh to count the number of changes in specific files, make +# sure any logging from use_config_env.sh is squelched. This is mostly +# safe since both scripts have already called use_config_env.sh and +# exposed any errors it encountered. In practice, we're only using +# use_config_env.sh here to "import" the function find_repo_type. +source dom/media/webrtc/third_party_build/use_config_env.sh &> /dev/null + +find_repo_type + +if [ "x$MOZ_REPO" == "xgit" ]; then + git show --format='' --name-only \ + 'third_party/libwebrtc/**BUILD.gn' \ + 'third_party/libwebrtc/**.gni' \ + 'third_party/libwebrtc/.gn' \ + 'dom/media/webrtc/third_party_build/gn-configs/webrtc.json' +else + hg status --change . \ + --include 'third_party/libwebrtc/**BUILD.gn' \ + --include 'third_party/libwebrtc/**/*.gni' \ + --include 'third_party/libwebrtc/.gn' \ + --include 'dom/media/webrtc/third_party_build/gn-configs/webrtc.json' +fi