Switch to unified view

a/scripts/refresh-all-repos.py b/scripts/refresh-all-repos.py
...
...
50
                    continue
50
                    continue
51
                if c.app.repo.tool.lower() not in options.repo_types:
51
                if c.app.repo.tool.lower() not in options.repo_types:
52
                    log.info("Skipping %r: wrong type (%s)", c.app.repo,
52
                    log.info("Skipping %r: wrong type (%s)", c.app.repo,
53
                            c.app.repo.tool.lower())
53
                            c.app.repo.tool.lower())
54
                    continue
54
                    continue
55
                try:
56
                    c.app.repo._impl._setup_hooks()
57
                except:
58
                    log.exception('Error setting up hooks for %r', c.app.repo)
59
55
60
                if options.clean:
56
                if options.clean:
61
                    ci_ids = list(c.app.repo.all_commit_ids())
57
                    ci_ids = list(c.app.repo.all_commit_ids())
62
                    log.info("Deleting mongo data for %i commits...", len(ci_ids))
58
                    log.info("Deleting mongo data for %i commits...", len(ci_ids))
63
                    tree_ids = [
59
                    tree_ids = [