- Notifications
You must be signed in to change notification settings - Fork 791
make it possible to mirror more projects at once #2731
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
| Another hopefully positive side effect is that configuration is now checked before the run. |
Pull Request Test Coverage Report for Build 4183
💛 - Coveralls |
make repository construction and synchronization best effort
opengrok-tools/src/main/python/opengrok_tools/scm/repofactory.py Outdated Show resolved Hide resolved
| How exactly you mirror multiple projects at one? I still see a sequential loop in there. |
| the main loop is in for project_name in projects: if args.batch: get_batch_logger(logdir, project_name, args.loglevel, args.backupcount, get_class_basename()) project_result = mirror_project(config, project_name, args.incoming, args.uri, source_root) if project_result == 1: ret = 1it should be possible to take this one step further and make it parallelized so that it can be used outside of |
| There are 11 unresolved comments and you merged it? Any plan to resolve them? |
| I believe all of them were resolved. |
mirror.pywas always good candidate for refactoring. I used the opportunity to add the capability of mirroring multiple projects in one run. The intention is to use it in the Docker script (OpenGrok/docker#27).This change also adds
--allswitch mirrors all indexed projects. This is mutually exclusive with project arguments of the script.