Include the repository in log_times() output.
Thu Feb 23 19:47:31 UTC 2006 Alberto Bertogli <albertogli@telpin.com.ar>
* Include the repository in log_times() output.
{
hunk ./darcsweb.cgi 244
-def log_times(cache_hit, event = None):
+def log_times(cache_hit, repo = None, event = None):
hunk ./darcsweb.cgi 254
- s = """\
-%s
+ s = '%s\n' % event
+
+ if repo:
+ s += '\trepo: %s\n' % repo
+
+ s += """\
hunk ./darcsweb.cgi 262
- imports: %.3f\n""" % (event, time_total, processing, time_imports)
+ imports: %.3f\n""" % (time_total, processing, time_imports)
hunk ./darcsweb.cgi 2305
- log_times(cache_hit = 1)
+ log_times(cache_hit = 1, repo = config.reponame)
hunk ./darcsweb.cgi 2458
-log_times(cache_hit = 0)
+log_times(cache_hit = 0, repo = config.reponame)
}