VirtualBox

Ignore:
Timestamp:
Apr 11, 2020 6:37:52 PM (5 years ago)
Author:
vboxsync
Message:

tools/bin/backport-*: Adding a --first-rev option to check that the branch is empty.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tools/bin/backport-merge.sh

    r83678 r83679  
    3333MY_SCRIPT_NAME="backport-merge.sh"
    3434. "${MY_SCRIPT_DIR}/backport-common.sh"
     35
     36#
     37# Check that the branch is clean if first revision.
     38#
     39if test -n "${MY_FIRST_REV}"; then
     40    MY_STATUS=`"${MY_SVN}" status -q "${MY_BRANCH_DIR}"`
     41    if test -n "${MY_STATUS}"; then
     42        echo "error: Branch already has changes pending..."
     43        "${MY_SVN}" status -q "${MY_BRANCH_DIR}"
     44        exit 1;
     45    else
     46        test -z "${MY_DEBUG}" || echo "debug: Found no pending changes on branch."
     47    fi
     48fi
    3549
    3650#
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette