summaryrefslogtreecommitdiffstats
path: root/dom/media/webrtc/third_party_build/elm_rebase.sh
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-15 03:34:42 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-15 03:34:42 +0000
commitda4c7e7ed675c3bf405668739c3012d140856109 (patch)
treecdd868dba063fecba609a1d819de271f0d51b23e /dom/media/webrtc/third_party_build/elm_rebase.sh
parentAdding upstream version 125.0.3. (diff)
downloadfirefox-da4c7e7ed675c3bf405668739c3012d140856109.tar.xz
firefox-da4c7e7ed675c3bf405668739c3012d140856109.zip
Adding upstream version 126.0.upstream/126.0
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'dom/media/webrtc/third_party_build/elm_rebase.sh')
-rw-r--r--dom/media/webrtc/third_party_build/elm_rebase.sh15
1 files changed, 15 insertions, 0 deletions
diff --git a/dom/media/webrtc/third_party_build/elm_rebase.sh b/dom/media/webrtc/third_party_build/elm_rebase.sh
index ba0028b7a4..0dbf93d3ce 100644
--- a/dom/media/webrtc/third_party_build/elm_rebase.sh
+++ b/dom/media/webrtc/third_party_build/elm_rebase.sh
@@ -153,6 +153,15 @@ export MOZ_BOOKMARK=$MOZ_BOOKMARK
" > $STATE_DIR/rebase_resume_state
fi # if [ -f $STATE_DIR/rebase_resume_state ]; then ; else
+if [ "x$STOP_FOR_REORDER" = "x1" ]; then
+ echo ""
+ echo "Stopping after generating commit list ($COMMIT_LIST_FILE) to"
+ echo "allow tweaking commit ordering. Re-running $0 will resume the"
+ echo "rebase processing. To stop processing during the rebase,"
+ echo "insert a line with only 'STOP'."
+ exit
+fi
+
# grab all commits
COMMITS=`cat $COMMIT_LIST_FILE | awk '{print $1;}'`
@@ -171,6 +180,12 @@ for commit in $COMMITS; do
ed -s $COMMIT_LIST_FILE <<< $'1d\nw\nq'
}
+ if [ "$FULL_COMMIT_LINE" == "STOP" ]; then
+ echo "Stopping for history editing. Re-run $0 to resume."
+ remove_commit
+ exit
+ fi
+
IS_BUILD_COMMIT=`hg log -T '{desc|firstline}' -r $commit \
| grep "file updates" | wc -l | tr -d " " || true`
echo "IS_BUILD_COMMIT: $IS_BUILD_COMMIT"