You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-commits@hadoop.apache.org by at...@apache.org on 2011/06/16 00:16:36 UTC
svn commit: r1136220 - in /hadoop/common/trunk/common: CHANGES.txt
src/saveVersion.sh
Author: atm
Date: Wed Jun 15 22:16:36 2011
New Revision: 1136220
URL: http://svn.apache.org/viewvc?rev=1136220&view=rev
Log:
HADOOP-7390. VersionInfo not generated properly in git after unsplit. (todd via atm)
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=1136220&r1=1136219&r2=1136220&view=diff
==============================================================================
--- hadoop/common/trunk/common/CHANGES.txt (original)
+++ hadoop/common/trunk/common/CHANGES.txt Wed Jun 15 22:16:36 2011
@@ -309,6 +309,9 @@ Trunk (unreleased changes)
HADOOP-7389. Use of TestingGroups by tests causes subsequent tests to fail.
(atm via tomwhite)
+ HADOOP-7390. VersionInfo not generated properly in git after unsplit. (todd
+ via atm)
+
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=1136220&r1=1136219&r2=1136220&view=diff
==============================================================================
--- hadoop/common/trunk/common/src/saveVersion.sh (original)
+++ hadoop/common/trunk/common/src/saveVersion.sh Wed Jun 15 22:16:36 2011
@@ -26,7 +26,7 @@ build_dir=$2
user=`whoami | tr '\n\r' '\n'`
date=`date`
cwd=`pwd`
-if [ -d .git ]; then
+if git rev-parse HEAD 2>/dev/null > /dev/null ; then
revision=`git log -1 --pretty=format:"%H"`
hostname=`hostname`
branch=`git branch | sed -n -e 's/^* //p'`