diff --git a/common/CHANGES.txt b/common/CHANGES.txt index b0b9cc4e1c..86b096b94d 100644 --- a/common/CHANGES.txt +++ b/common/CHANGES.txt @@ -399,6 +399,9 @@ Trunk (unreleased changes) plain text (Luke Lu) -r 1079164: No need to escape plain text (Luke Lu) + HADOOP-7471. The saveVersion.sh script sometimes fails to extract SVN URL. + (Alejandro Abdelnur via eli) + Release 0.22.0 - Unreleased INCOMPATIBLE CHANGES diff --git a/common/src/saveVersion.sh b/common/src/saveVersion.sh index aef6967e17..93ce7ecdb6 100755 --- a/common/src/saveVersion.sh +++ b/common/src/saveVersion.sh @@ -33,7 +33,7 @@ if git rev-parse HEAD 2>/dev/null > /dev/null ; then url="git://${hostname}${cwd}" elif [ -d .svn ]; then revision=`svn info | sed -n -e 's/Last Changed Rev: \(.*\)/\1/p'` - url=`svn info | sed -n -e 's/URL: \(.*\)/\1/p'` + url=`svn info | sed -n -e 's/^URL: \(.*\)/\1/p'` # Get canonical branch (branches/X, tags/X, or trunk) branch=`echo $url | sed -n -e 's,.*\(branches/.*\)$,\1,p' \ -e 's,.*\(tags/.*\)$,\1,p' \