提交 167d6a02 编写于 作者: P Peter Korsgaard 提交者: Sam Ravnborg

setlocalversion: print correct subversion revision

Output svn revision of latest change, instead of repo revision as thats
what we're interested in (especially when working on a branch/tag).
Signed-off-by: NPeter Korsgaard <jacmet@sunsite.dk>
Signed-off-by: NSam Ravnborg <sam@ravnborg.org>
上级 846442c8
......@@ -51,7 +51,7 @@ if hgid=`hg id 2>/dev/null`; then
fi
# Check for svn and a svn repo.
if rev=`svn info 2>/dev/null | grep '^Revision'`; then
if rev=`svn info 2>/dev/null | grep '^Last Changed Rev'`; then
rev=`echo $rev | awk '{print $NF}'`
changes=`svn status 2>/dev/null | grep '^[AMD]' | wc -l`
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册