trac-hacks / tracstats

Project and source code statistics plugin for Trac.
http://trac-hacks.org/wiki/TracStatsPlugin
Other
20 stars 13 forks source link

Subdirectories for Projects list #19

Closed catskul closed 13 years ago

catskul commented 13 years ago

It would be useful to be able to select a sudirectory or subdirectories where to search for projects.

We, for instance, do not have our projects listed under the root directory of the repository so the stats only list "depot".

mrjbq7 commented 13 years ago

I just pushed a version that should let you do this. From the README:

In addition, an optional "project root" within your repository can be configured as the base for all projects and source code statistics::

[stats]
root = path/to/projects

Can you try it and see if it works for you? The performance is a little slower because it has to filter the paths for those that match the project root. Let me know how slow it is for you, I might need to improve the speed.

mrjbq7 commented 13 years ago

Closing this for now. Let me know if it's not working. Thanks!