diff options
author | Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> | 2011-08-25 09:16:52 +0000 |
---|---|---|
committer | Rainer Orth <ro@gcc.gnu.org> | 2011-08-25 09:16:52 +0000 |
commit | 39b75e51ecf427f4d40ba33367ae0887d25a0a28 (patch) | |
tree | 666f9ca0b6a32fd6708cfe6bf9b2e7c38ee51244 /contrib/gcc_update | |
parent | 8619577f3a9b4df50f1c6f39698b1c237bc9b7cd (diff) | |
download | gcc-39b75e51ecf427f4d40ba33367ae0887d25a0a28.zip gcc-39b75e51ecf427f4d40ba33367ae0887d25a0a28.tar.gz gcc-39b75e51ecf427f4d40ba33367ae0887d25a0a28.tar.bz2 |
Don't assume hg convert in gcc_update
* gcc_update: Determine svn branch from hg convert_revision.
From-SVN: r178056
Diffstat (limited to 'contrib/gcc_update')
-rwxr-xr-x | contrib/gcc_update | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/contrib/gcc_update b/contrib/gcc_update index c368936..c719502 100755 --- a/contrib/gcc_update +++ b/contrib/gcc_update @@ -340,14 +340,13 @@ case $vcs_type in # corresponding to the extra: tag, so need to use hg log --debug # to extract the info. parents=`$GCC_HG parents --template '{rev}'` - revision=`$GCC_HG log --debug -r$parents | \ + convert_revision=`$GCC_HG log --debug -r$parents | \ sed -ne "/^extra:.*convert_revision=svn:/ { - s%^.*@%% + s%^[^/]*/%% p }"` - branch=`$GCC_HG branch` - # trunk in SVN parlance shows up as default branch in hg. - [ x$branch = x"default" ] && branch="trunk" + revision=`echo $convert_revision | sed -e 's/.*@//'` + branch=`echo $convert_revision | sed -e 's%branches/%%' -e 's/@.*//'` ;; svn) |