It appears that with libgit2 v0.24.6 reverse causes it to list them newest first. In 0.25.1 it lists them oldest first. On both versions just using SortMode.TIME gives the desired result of oldest first.
- fix import of mock module - account for io.StringIO differences in Python 2