VirtualBox

Changeset 85668 in vbox for trunk


Ignore:
Timestamp:
Aug 10, 2020 3:25:45 PM (4 years ago)
Author:
vboxsync
Message:

Forwardported r139797: backport*.sh: acceept revision ranges on the command line too, sharing code with the svn:merge-info parsing.

Location:
trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk

    • Property svn:mergeinfo
      •  

        old new  
        1010/branches/VBox-5.2:119536,120083,120099,120213,120221,120239,123597-123598,123600-123601,123755,124260,124263,124271,124273,124277-124279,124284-124286,124288-124290,125768,125779-125780,125812
        1111/branches/VBox-6.0:130474-130475,130477,130479,131352
        12 /branches/VBox-6.1:139660
         12/branches/VBox-6.1:139660,139797
        1313/branches/aeichner/vbox-chromium-cleanup:129816,129818-129851,129853-129861,129871-129872,129876,129880,129882,130013-130015,130036,130094-130095
        1414/branches/andy/draganddrop:90781-91268
  • trunk/tools/bin/backport-commit.sh

    r85586 r85668  
    5151                ;;
    5252            [0-9][0-9][0-9][0-9][0-9]-[0-9][0-9][0-9][0-9][0-9]|[0-9][0-9][0-9][0-9][0-9][0-9]-[0-9][0-9][0-9][0-9][0-9][0-9]|[0-9][0-9][0-9][0-9][0-9][0-9][0-9]-[0-9][0-9][0-9][0-9][0-9][0-9][0-9])
    53                 MY_REV_FIRST=${MY_REV%-*}
    54                 MY_REV_LAST=${MY_REV#*-}
    55                 if test -z "${MY_REV_FIRST}" -o -z "${MY_REV_LAST}" -o '(' '!' "${MY_REV_FIRST}" -lt "${MY_REV_LAST}" ')'; then
    56                     echo "error: failed to get revisions from svn:mergeinfo - MY_REV_FIRST=${MY_REV_FIRST} MY_REV_LAST=${MY_REV_LAST} MY_REV=${MY_REV}"
    57                     exit 1
    58                 fi
    59                 MY_REV=${MY_REV_FIRST}
    60                 while test ${MY_REV} -le ${MY_REV_LAST};
    61                 do
    62                     AddRevision "${MY_REV}"
    63                     MY_REV=$(${MY_EXPR} ${MY_REV} + 1)
    64                 done
     53                AddRevisionRange "${MY_REV}"
    6554                ;;
    6655
  • trunk/tools/bin/backport-common.sh

    r85589 r85668  
    6060}
    6161
     62AddRevisionRange()
     63{
     64    MY_REV=$1
     65    MY_REV_FIRST=${MY_REV%-*}
     66    MY_REV_LAST=${MY_REV#*-}
     67    if test -z "${MY_REV_FIRST}" -o -z "${MY_REV_LAST}" -o '(' '!' "${MY_REV_FIRST}" -lt "${MY_REV_LAST}" ')'; then
     68        echo "error: Failed to parse revision range: MY_REV_FIRST=${MY_REV_FIRST} MY_REV_LAST=${MY_REV_LAST} MY_REV=${MY_REV}"
     69        exit 1
     70    fi
     71    MY_REV=${MY_REV_FIRST}
     72    while test ${MY_REV} -le ${MY_REV_LAST};
     73    do
     74        AddRevision "${MY_REV}"
     75        MY_REV=$(${MY_EXPR} ${MY_REV} + 1)
     76    done
     77}
     78
    6279#
    6380# Figure default branch given the script location.
     
    98115        [0-9][0-9][0-9][0-9][0-9]|[0-9][0-9][0-9][0-9][0-9][0-9]|[0-9][0-9][0-9][0-9][0-9][0-9][0-9])
    99116            AddRevision ${ARG}
     117            ;;
     118
     119        [0-9][0-9][0-9][0-9][0-9]-[0-9][0-9][0-9][0-9][0-9]|[0-9][0-9][0-9][0-9][0-9][0-9]-[0-9][0-9][0-9][0-9][0-9][0-9]|[0-9][0-9][0-9][0-9][0-9][0-9][0-9]-[0-9][0-9][0-9][0-9][0-9][0-9][0-9])
     120            AddRevisionRange ${ARG}
     121            ;;
     122        r[0-9][0-9][0-9][0-9][0-9]-[0-9][0-9][0-9][0-9][0-9]|r[0-9][0-9][0-9][0-9][0-9][0-9]-[0-9][0-9][0-9][0-9][0-9][0-9]|r[0-9][0-9][0-9][0-9][0-9][0-9][0-9]-[0-9][0-9][0-9][0-9][0-9][0-9][0-9])
     123            MY_REV=`echo "${ARG}" | "${MY_SED}" -e 's/^r//'`
     124            AddRevisionRange ${MY_REV}
    100125            ;;
    101126
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