You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hbase.apache.org by li...@apache.org on 2014/03/14 19:09:40 UTC

svn commit: r1577637 - /hbase/branches/0.89-fb/src/saveVersion.sh

Author: liyin
Date: Fri Mar 14 18:09:40 2014
New Revision: 1577637

URL: http://svn.apache.org/r1577637
Log:
[private] Select the last git-svn-id if extracted multiple

Author: daviddeng

Summary: In the log, sometimes there are wrong git-svn-id, but the last one is always correct. Choose it.

Test Plan:
`mvn -DskipTests package`
`cat target/generated-sources/org/apache/hadoop/hbase/package-info.java`

Reviewers: liyintang, rshroff, manukranthk

Reviewed By: liyintang

CC: hbase-eng@, aleksandr

Differential Revision: https://phabricator.fb.com/D1217101

Task ID: 3896981

Modified:
    hbase/branches/0.89-fb/src/saveVersion.sh

Modified: hbase/branches/0.89-fb/src/saveVersion.sh
URL: http://svn.apache.org/viewvc/hbase/branches/0.89-fb/src/saveVersion.sh?rev=1577637&r1=1577636&r2=1577637&view=diff
==============================================================================
--- hbase/branches/0.89-fb/src/saveVersion.sh (original)
+++ hbase/branches/0.89-fb/src/saveVersion.sh Fri Mar 14 18:09:40 2014
@@ -37,7 +37,8 @@ elif [ -d .git ]; then
 else
 	which git  > /dev/null
 	if [ $? == 0 ]; then 
-		revision=`git log -1 | grep "git-svn-id:" | awk '{print $2}' | cut -f7 -d\/`
+		revision=`git log -1 | grep "git-svn-id:" | tail -1| awk '{print $2}' | cut -f7 -d\/`
+
 		hostname=`hostname`
 		if [ "$revision" == "" ]; then
 			git_revision=`git log -1 --pretty=format:"%H"`