(repo: &Path, branch: &str)
| 71 | } |
| 72 | |
| 73 | fn rev_list(repo: &Path, branch: &str) -> Vec<String> { |
| 74 | let out = Command::new(common::git_program()) |
| 75 | .args(["rev-list", branch]) |
| 76 | .current_dir(repo) |
| 77 | .output() |
| 78 | .unwrap_or_else(|e| panic!("rev-list {branch}: {e}")); |
| 79 | assert!(out.status.success(), "rev-list {branch} should succeed"); |
| 80 | String::from_utf8(out.stdout) |
| 81 | .unwrap() |
| 82 | .lines() |
| 83 | .map(str::to_string) |
| 84 | .collect() |
| 85 | } |
| 86 | |
| 87 | fn session(session_id: &str, project_path: &str, started: i64, ended: i64) -> SessionRecord { |
| 88 | SessionRecord { |
no test coverage detected