svn info http://svnurl > svninfo.txt
type svninfo.txt | python.exe rev.py > svnrev.txt
set /p TAG=< svnrev.txt
echo rev is %TAG%
rev.py
key="Revision:"need python and svn command line tool.
import sys
data = sys.stdin.readlines()
for x in data:
if x.startswith(key):
print(x[len(key):].strip())
break
没有评论:
发表评论