|
a/scripts/refresh-all-repos.py |
|
b/scripts/refresh-all-repos.py |
|
... |
|
... |
42 |
c.app = app
|
42 |
c.app = app
|
43 |
if not hasattr(app, 'repo'): continue
|
43 |
if not hasattr(app, 'repo'): continue
|
44 |
if options.clean:
|
44 |
if options.clean:
|
45 |
M.LastCommitFor.query.remove(dict(repo_id=c.app.repo._id))
|
45 |
M.LastCommitFor.query.remove(dict(repo_id=c.app.repo._id))
|
46 |
try:
|
46 |
try:
|
47 |
c.app.repo._impl._setup_receive_hook()
|
47 |
c.app.repo._impl._setup_hooks()
|
48 |
except:
|
48 |
except:
|
49 |
log.exception('Error setting up receive hook for %r', c.app.repo)
|
49 |
log.exception('Error setting up hooks for %r', c.app.repo)
|
50 |
try:
|
50 |
try:
|
51 |
if options.all:
|
51 |
if options.all:
|
52 |
log.info('Refreshing ALL commits in %r', c.app.repo)
|
52 |
log.info('Refreshing ALL commits in %r', c.app.repo)
|
53 |
else:
|
53 |
else:
|
54 |
log.info('Refreshing NEW commits in %r', c.app.repo)
|
54 |
log.info('Refreshing NEW commits in %r', c.app.repo)
|