如果一个测试站点要及时的从svn获取最新的文件,那么写一个定期更新程序是非常必要的,下面的代码Python的简单实现
svnupdate.py
svnupdate.py
import
time,os,sys,svnconfig
dist = svnconfig.setting[ ' dist ' ]
os.chdir(svnconfig.setting[ ' svn ' ])
def checkout():
svnconfig.setting[ ' dist ' ] = dist + time.strftime(
dist = svnconfig.setting[ ' dist ' ]
os.chdir(svnconfig.setting[ ' svn ' ])
def checkout():
svnconfig.setting[ ' dist ' ] = dist + time.strftime(