...and don't consider the repo itself to be its parent repo
This is an optimization of commits page viewing in UI. I tested it on gecko-dev repo that contains over half million of commits and with this I could get from ~14s loading time to around ~6.5s. It also creates much less Python objects in memory.
I was able to run pep8 on changed file but couldn't manage to run unit tests yet :(. Will try to fix that. I am giving this for pre-review.
...and don't consider the repo itself to be its parent repo
This is an optimization of commits page viewing in UI. I tested it on gecko-dev repo that contains over half million of commits and with this I could get from ~14s loading time to around ~6.5s. It also creates much less Python objects in memory.
I was able to run pep8 on changed file but couldn't manage to run unit tests yet :(. Will try to fix that. I am giving this for pre-review.