VirtualBox

Changeset 84267 in vbox


Ignore:
Timestamp:
May 12, 2020 8:37:44 AM (5 years ago)
Author:
vboxsync
Message:

tools/bin/backport-*: Added --force switch to force merging/backporting. Use with caution!

Location:
trunk/tools/bin
Files:
2 edited

Legend:

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

    r83680 r84267  
    7373MY_EXTRA_ARGS=
    7474MY_DEBUG=
     75MY_FORCE=
    7576
    7677while test $# -ge 1;
     
    127128        --first-rev|--first|-1)
    128129            MY_FIRST_REV=1
     130            ;;
     131
     132        --force)
     133            MY_FORCE=1
    129134            ;;
    130135
     
    160165            echo "  --first-rev, --first, -1"
    161166            echo "    Merge only: Check that the branch does not have any pending changes."
     167            echo "  --force"
     168            echo "    Forces backporting, regardless of ancestry. Use with caution!"
    162169            echo "  --update-first, --update, -u"
    163170            echo "    Merge only: Update the branch before merging."
     
    213220    exit 2;
    214221fi
    215 
  • trunk/tools/bin/backport-merge.sh

    r83680 r84267  
    7171        echo "*** Merging r${MY_REV} ..."
    7272        echo "***"
     73        if [ -n "${MY_FORCE}" ]; then
     74            MY_MERGE_ARGS="$MY_MERGE_ARGS--ignore-ancestry"
     75        fi
    7376        if "${MY_SVN}" merge ${MY_MERGE_ARGS} "${MY_TRUNK_DIR}" "${MY_BRANCH_DIR}" -c ${MY_REV}; then
    7477            # Check for conflict.
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