User: jpetso Branch: HEAD Date: Fri, 29 May 2009 16:20:56 +0000 Modified files: /modules/versioncontrol/commitlog commitlog.module /modules/versioncontrol versioncontrol.admin.inc versioncontrol.module Log message: New API function versioncontrol_get_operation_statistics(). Replaces the infamous versioncontrol_get_user_statistics() with a more flexible query-based approach instead of hardly scalable counting of operation arrays. In fact, this new function can count operations in pretty much any combination of grouping and sorting that you might need. Or if you just need the number of all operations altogether without any grouping, you can have that as well. (Thus implementing cvslog's In order to implement this functionality, versioncontrol_get_operations() and the related query construction functions have been refactored a bit, so that versioncontrol_get_operation_statistics() shares lots of code for constructing the query. On top of that, some pieces of code related to displaying statistics have been slightly changed and adapted. Links: http://cvs.drupal.org/diff.php?path=contributions/modules/versioncontrol/com... http://cvs.drupal.org/diff.php?path=contributions/modules/versioncontrol/ver... http://cvs.drupal.org/diff.php?path=contributions/modules/versioncontrol/ver...