diff options
author | ro <ro@138bc75d-0d04-0410-961f-82ee72b054a4> | 2011-08-25 09:16:52 +0000 |
---|---|---|
committer | ro <ro@138bc75d-0d04-0410-961f-82ee72b054a4> | 2011-08-25 09:16:52 +0000 |
commit | e438ed4065651d263f2ddc41bc2970c6ae7f1008 (patch) | |
tree | 666f9ca0b6a32fd6708cfe6bf9b2e7c38ee51244 /contrib | |
parent | 151e1f995c1902ad5500d24f096ca4d62ac21e76 (diff) | |
download | gcc-e438ed4065651d263f2ddc41bc2970c6ae7f1008.tar.gz |
Don't assume hg convert in gcc_update
* gcc_update: Determine svn branch from hg convert_revision.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@178056 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'contrib')
-rw-r--r-- | contrib/ChangeLog | 4 | ||||
-rwxr-xr-x | contrib/gcc_update | 9 |
2 files changed, 8 insertions, 5 deletions
diff --git a/contrib/ChangeLog b/contrib/ChangeLog index e68679dd1ac..07adb585d28 100644 --- a/contrib/ChangeLog +++ b/contrib/ChangeLog @@ -1,3 +1,7 @@ +2011-08-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> + + * gcc_update: Determine svn branch from hg convert_revision. + 2011-07-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> * config-list.mk (i586-netware): Remove. diff --git a/contrib/gcc_update b/contrib/gcc_update index c368936e51e..c7195023c79 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) |