hadoop-common-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From e..@apache.org
Subject svn commit: r1147967 - in /hadoop/common/trunk/common: CHANGES.txt src/saveVersion.sh
Date Mon, 18 Jul 2011 16:54:58 GMT
Author: eli
Date: Mon Jul 18 16:54:57 2011
New Revision: 1147967

URL: http://svn.apache.org/viewvc?rev=1147967&view=rev
Log:
HADOOP-7471. The saveVersion.sh script sometimes fails to extract SVN URL. Contributed by
Alejandro Abdelnur

Modified:
    hadoop/common/trunk/common/CHANGES.txt
    hadoop/common/trunk/common/src/saveVersion.sh

Modified: hadoop/common/trunk/common/CHANGES.txt
URL: http://svn.apache.org/viewvc/hadoop/common/trunk/common/CHANGES.txt?rev=1147967&r1=1147966&r2=1147967&view=diff
==============================================================================
--- hadoop/common/trunk/common/CHANGES.txt (original)
+++ hadoop/common/trunk/common/CHANGES.txt Mon Jul 18 16:54:57 2011
@@ -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

Modified: hadoop/common/trunk/common/src/saveVersion.sh
URL: http://svn.apache.org/viewvc/hadoop/common/trunk/common/src/saveVersion.sh?rev=1147967&r1=1147966&r2=1147967&view=diff
==============================================================================
--- hadoop/common/trunk/common/src/saveVersion.sh (original)
+++ hadoop/common/trunk/common/src/saveVersion.sh Mon Jul 18 16:54:57 2011
@@ -33,7 +33,7 @@ if git rev-parse HEAD 2>/dev/null > /dev
   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' \



Mime
View raw message