Child: [ddf08c] (diff)

Download this file

018-add-svn-checkout-url.py    8 lines (6 with data), 259 Bytes

1
2
3
4
5
6
7
from allura import model as M
from ming.orm import ThreadLocalORMSession
for app in M.AppConfig.query.find(dict(tool_name="svn")).all():
if 'checkout_url' not in app.options:
app.options.checkout_url='trunk'
ThreadLocalORMSession.flush_all()