258 proc.chdir(repo.path); |
258 proc.chdir(repo.path); |
259 if (repo.type == fm::HG) { |
259 if (repo.type == fm::HG) { |
260 proc.setbin(settings.hg); |
260 proc.setbin(settings.hg); |
261 if (proc.exec_log({"log", |
261 if (proc.exec_log({"log", |
262 "--date", std::format("{0}-01-01 00:00:00 to {0}-12-31 23:59:59", report_year), |
262 "--date", std::format("{0}-01-01 00:00:00 to {0}-12-31 23:59:59", report_year), |
263 "--template", "{author}#{date|shortdate}#{desc|firstline}\n"})) { |
263 "--template", "{author}#{date|shortdate}#{desc|firstline}\\n"})) { |
264 fprintf(stderr, "Reading commit log for repo '%s' failed!\n", repo.path.c_str()); |
264 fprintf(stderr, "Reading commit log for repo '%s' failed!\n", repo.path.c_str()); |
265 return EXIT_FAILURE; |
265 return EXIT_FAILURE; |
266 } |
266 } |
267 heatmap.add(settings, proc.output()); |
267 heatmap.add(settings, proc.output()); |
268 } else { |
268 } else { |