| 274 proc.chdir(repo.path); |
274 proc.chdir(repo.path); |
| 275 if (repo.type == fm::HG) { |
275 if (repo.type == fm::HG) { |
| 276 proc.setbin(settings.hg); |
276 proc.setbin(settings.hg); |
| 277 if (proc.exec_log({"log", |
277 if (proc.exec_log({"log", |
| 278 "--date", std::format("{0}-01-01 00:00:00 to {0}-12-31 23:59:59", report_year), |
278 "--date", std::format("{0}-01-01 00:00:00 to {0}-12-31 23:59:59", report_year), |
| 279 "--template", "{author}#{date|shortdate}#{tags}#{desc|firstline}\\n"})) { |
279 "--template", "{node}#{author}#{date|shortdate}#{tags}#{desc|firstline}\\n"})) { |
| 280 fprintf(stderr, "Reading commit log for repo '%s' failed!\n", repo.path.c_str()); |
280 fprintf(stderr, "Reading commit log for repo '%s' failed!\n", repo.path.c_str()); |
| 281 return EXIT_FAILURE; |
281 return EXIT_FAILURE; |
| 282 } |
282 } |
| 283 heatmap.add(settings, proc.output()); |
283 heatmap.add(settings, proc.output()); |
| 284 } else { |
284 } else { |
| 287 "--all", |
287 "--all", |
| 288 "--decorate=short", |
288 "--decorate=short", |
| 289 "--decorate-refs=refs/tags/", |
289 "--decorate-refs=refs/tags/", |
| 290 "--since", std::format("{0}-01-01 00:00:00", report_year), |
290 "--since", std::format("{0}-01-01 00:00:00", report_year), |
| 291 "--until", std::format("{0}-12-31 23:59:59", report_year), |
291 "--until", std::format("{0}-12-31 23:59:59", report_year), |
| 292 "--format=tformat:%an <%ae>#%cs#%(decorate:prefix=,suffix=,tag=,separator= )#%s"})) { |
292 "--format=tformat:%H#%an <%ae>#%cs#%(decorate:prefix=,suffix=,tag=,separator= )#%s"})) { |
| 293 fprintf(stderr, "Reading commit log for repo '%s' failed!\n", repo.path.c_str()); |
293 fprintf(stderr, "Reading commit log for repo '%s' failed!\n", repo.path.c_str()); |
| 294 return EXIT_FAILURE; |
294 return EXIT_FAILURE; |
| 295 } |
295 } |
| 296 heatmap.add(settings, proc.output()); |
296 heatmap.add(settings, proc.output()); |
| 297 } |
297 } |