Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Note: This is basically a more robust version of what @iandunn proposed over in #13.
Introduces updating in batches. Technically it adds batching to both first-time pulls and subsequent updates, though the idea of the batching the former is kind of pointless since you need all the things as a starting point.
The upside of "batching" the initial pull is that it allows you to see where in the overall scheme of things you are in terms of batches completed out of the total number. Nice to have an indicator there at least.
Regardless, the default number of plugins to update per batch is 1,000, and can be modified via a new argument passed when starting the updater, like so:
./update all 2500
Following the completion of each batch of plugins, the last_revision file is updated and the loop starts over. The obvious benefit of batching is that if you need to interrupt the update for whatever reason, you only lose you place by the number of plugins in a given batch.
I've added some additional text output giving better indication of where in the overall scheme of things you are including which batch out of the total calculated batches you're in currently, as well as integrated the cleanup messaging. I've been using this modified version to stay updated for the last month or so without issues.
Feedback would be appreciated.