3 # Make a list of revisions for commits to the branch of interest (trunk
4 # by default) between the specified dates. This skips commits that do
5 # not modify any existing files and changes by gccadmin.
7 # Copyright (C) 2007 Free Software Foundation.
9 # This file is free software; you can redistribute it and/or modify
10 # it under the terms of the GNU General Public License as published by
11 # the Free Software Foundation; either version 3 of the License, or
12 # (at your option) any later version.
14 # This program is distributed in the hope that it will be useful,
15 # but WITHOUT ANY WARRANTY; without even the implied warranty of
16 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 # GNU General Public License for more details.
19 # For a copy of the GNU General Public License, write the the
20 # Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
21 # Boston, MA 02111-1301, USA.
30 test $# -lt 2 && abort
"usage: $0 low_date high_date [branch]"
42 # Verify branch name, convert a short name to the real one.
46 mline
) BRANCH
="trunk";;
47 mainline
) BRANCH
="trunk";;
48 4.1) BRANCH
="gcc-4_1-branch";;
50 4.0) BRANCH
="gcc-4_0-branch";;
52 3.4) BRANCH
="gcc-3_4-branch";;
54 *) ;; # abort "$0: unrecognized branch $BRANCH"
57 if [ "${BRANCH}" = "trunk" ]; then
60 BRANCHPATH
=branches
/${BRANCH}
63 # Get the revision at the time of LOW_DATE.
65 LOW_REV
=`svn info --revision {"${LOW_DATE}"} \
66 ${REG_SVN_REPO}/${BRANCHPATH} \
67 | awk '/Revision:/ { print $2 }'`
69 # Create the list of information for LOW_REV through HIGH_DATE in a
70 # form expected by gcc-svn-ids.
72 svn log
--quiet --non-interactive \
73 --revision ${LOW_REV}:{"${HIGH_DATE}"} \
74 ${REG_SVN_REPO}/${BRANCHPATH} \
75 |
awk -v branch
=$BRANCH \
78 /(no author)/ { next }
80 { sub(" \\+0000 (.*)","")
84 print id "|" $0 "|" branch