Fix looking up Subversion repositories by UUID.
Review Request #8226 — Created June 9, 2016 and submitted
In RBTools 0.7.6, we introduced new helpers for iterating over pages of API list resources, and switched the SVN repository lookups to use it. Unfortunately, switching form a list to a generator meant that we were no longer able to loop over the requests a second time for the UUID checks. We now store a cached list of the repositories we iterate through, so that we can loop over them for the UUID step (if needed). We do this instead of immediately converting the generator to a list in order to reduce lookups against the API. Unit tests were added to ensure the conditions all work and won't regress again.
Tested against a list of repositories and verified that both loops
were able to operate on the entire list of repositories from the API.
- Change Summary:
-
Fixed a comment to not be silly.
- Commit:
-
f821ce99bdea62e2891a367d2bde0ae4d1e1b617fff4dd9c4273764b50390ee696fbdb1451c98c8a
-
Tool: Pyflakes Processed Files: rbtools/api/tests.py rbtools/clients/svn.py rbtools/clients/tests.py Tool: PEP8 Style Checker Processed Files: rbtools/api/tests.py rbtools/clients/svn.py rbtools/clients/tests.py
- Change Summary:
-
Elaborated in the comment about why we're not just fetching all results up-front as a list.
- Commit:
-
fff4dd9c4273764b50390ee696fbdb1451c98c8a5d53f25f2dd3fcf1df9ff2da5afa4d63a8a813f7