HBASE-1166 saveVersion.sh doesn't work with git
git-svn-id: https://svn.apache.org/repos/asf/hadoop/hbase/trunk@739508 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
9aa57a7512
commit
a579f449e0
|
@ -34,6 +34,7 @@ Release 0.20.0 - Unreleased
|
||||||
HBASE-845 HCM.isTableEnabled doesn't really tell if it is, or not
|
HBASE-845 HCM.isTableEnabled doesn't really tell if it is, or not
|
||||||
HBASE-903 [shell] Can't set table descriptor attributes when I alter a table
|
HBASE-903 [shell] Can't set table descriptor attributes when I alter a table
|
||||||
HBASE-1164 Remove HBase private copy of SequenceFile
|
HBASE-1164 Remove HBase private copy of SequenceFile
|
||||||
|
HBASE-1166 saveVersion.sh doesn't work with git (Nitay Joffe via Stack)
|
||||||
|
|
||||||
Release 0.19.0 - 01/21/2009
|
Release 0.19.0 - 01/21/2009
|
||||||
INCOMPATIBLE CHANGES
|
INCOMPATIBLE CHANGES
|
||||||
|
|
|
@ -23,8 +23,13 @@
|
||||||
unset LANG
|
unset LANG
|
||||||
unset LC_CTYPE
|
unset LC_CTYPE
|
||||||
version=$1
|
version=$1
|
||||||
revision=`svn info | sed -n -e 's/Last Changed Rev: \(.*\)/\1/p'`
|
if [[ -d .svn ]]; then
|
||||||
url=`svn info | sed -n -e 's/URL: \(.*\)/\1/p'`
|
revision=`svn info | sed -n -e 's/Last Changed Rev: \(.*\)/\1/p'`
|
||||||
|
url=`svn info | sed -n -e 's/URL: \(.*\)/\1/p'`
|
||||||
|
elif [[ -d .git ]]; then
|
||||||
|
revision=`git rev-list --max-count=1 HEAD`
|
||||||
|
url=`git config --get remote.origin.url`
|
||||||
|
fi
|
||||||
user=`whoami`
|
user=`whoami`
|
||||||
date=`date`
|
date=`date`
|
||||||
mkdir -p build/src/org/apache/hadoop/hbase
|
mkdir -p build/src/org/apache/hadoop/hbase
|
||||||
|
|
Loading…
Reference in New Issue