damned-lies r1441 - in trunk: . stats/management/commands
- From: claudep svn gnome org
- To: svn-commits-list gnome org
- Subject: damned-lies r1441 - in trunk: . stats/management/commands
- Date: Tue, 10 Feb 2009 19:07:52 +0000 (UTC)
Author: claudep
Date: Tue Feb 10 19:07:52 2009
New Revision: 1441
URL: http://svn.gnome.org/viewvc/damned-lies?rev=1441&view=rev
Log:
2009-02-10 Claude Paroz <claude 2xlibre net>
* stats/management/commands/update-stats.py: Added an option to update all
non-GNOME modules.
Modified:
trunk/ChangeLog
trunk/stats/management/commands/update-stats.py
Modified: trunk/stats/management/commands/update-stats.py
==============================================================================
--- trunk/stats/management/commands/update-stats.py (original)
+++ trunk/stats/management/commands/update-stats.py Tue Feb 10 19:07:52 2009
@@ -11,6 +11,8 @@
option_list = BaseCommand.option_list + (
make_option('--force', action='store_true', dest='force', default=False,
help="force statistics generation, even if files didn't change"),
+ make_option('--non-gnome', action='store_true', dest='non-gnome', default=False,
+ help="generate statistics for non-gnome modules (externally hosted)"),
)
output_transaction = False
@@ -48,7 +50,10 @@
print "Error while updating stats for %s (branch '%s')" % (module_arg, branch.name)
else:
# Update all modules
- modules = Module.objects.all()
+ if options['non-gnome']:
+ modules = Module.objects.exclude(vcs_root='http://svn.gnome.org/svn')
+ else:
+ modules = Module.objects.all()
for mod in modules:
print "Updating stats for %s..." % (mod.name)
branches = Branch.objects.filter(module__name=mod)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]