基于django的subversion浏览器。
django-svnlit的Python项目详细描述
用于Django的Subversion浏览器,可以跟踪和显示 包含多个存储库。
内容
Installation
在django站点中使用svnlit
一旦将svnlit源安装到python站点中
环境:
- Put ^{tt4}$ in your ^{tt5}$ setting.
- Run the command ^{tt6}$.
- Add Subversion repositories either through the Django
admin application or through the svnlit management command
^{tt7}$.
- Put ^{tt4}$ in your ^{tt5}$ setting.
- Run the command ^{tt6}$.
- Add Subversion repositories either through the Django admin application or through the svnlit management command ^{tt7}$.
Settings
可以通过添加 项目设置文件的适当设置。
以下设置可用:
SVNLIT_SYNC_INTERVAL
默认值:60
当SVNLIT_AUTO_SYNC设置为True时,此设置控制 同步发生的频率。每当一个景观被提供,时间 自上次同步检查后经过的时间。如果超过了这个数字 此设置指定的秒数,svnlit将同步 正在查看的存储库的变更集。
Management commands
svnlit附带了一些可以与manage.py一起使用的命令。
The ^{tt1}$ command
添加存储库。label是要 在URL中使用。参数root是存储库uri,例如 file:///var/svn/myrepository或svn://code.example.com/myrepository。 该命令还有几个附加选项。通过运行查看详细信息 manage.py help svnadd。
The ^{tt2}$ command
获取存储库更改。如果未指定参数,则所有 同步由svnlit跟踪的存储库。也可以指定 通过将其标签作为参数传递给各个存储库。
The ^{tt3}$ command
清除svnlit生成的过期缓存数据。这个命令可以是 用作crontab中的作业。