|
a/scripts/refresh-all-repos.py |
|
b/scripts/refresh-all-repos.py |
|
... |
|
... |
34 |
q_project = {}
|
34 |
q_project = {}
|
35 |
log.info('Refreshing repositories')
|
35 |
log.info('Refreshing repositories')
|
36 |
if options.clean:
|
36 |
if options.clean:
|
37 |
log.info('Removing all repository objects')
|
37 |
log.info('Removing all repository objects')
|
38 |
M.repository.RepoObject.query.remove()
|
38 |
M.repository.RepoObject.query.remove()
|
|
|
39 |
M.repo.CommitDoc.m.remove({})
|
|
|
40 |
M.repo.TreeDoc.m.remove({})
|
|
|
41 |
M.repo.TreesDoc.m.remove({})
|
|
|
42 |
M.repo.DiffInfoDoc.m.remove({})
|
|
|
43 |
M.repo.LastCommitDoc.m.remove({})
|
|
|
44 |
M.repo.CommitRunDoc.m.remove({})
|
39 |
for chunk in chunked_project_iterator(q_project):
|
45 |
for chunk in chunked_project_iterator(q_project):
|
40 |
for p in chunk:
|
46 |
for p in chunk:
|
41 |
c.project = p
|
47 |
c.project = p
|
42 |
if projects:
|
48 |
if projects:
|
43 |
mount_points = projects[p.shortname]
|
49 |
mount_points = projects[p.shortname]
|