(database: PathBuf, dot_dir: &Path)
| 104 | } |
| 105 | |
| 106 | fn existing(database: PathBuf, dot_dir: &Path) -> Result<PathBuf, RepositoryError> { |
| 107 | if database.is_file() { |
| 108 | Ok(database) |
| 109 | } else { |
| 110 | Err(RepositoryError::NotFound { |
| 111 | path: dot_dir.display().to_string(), |
| 112 | }) |
| 113 | } |
| 114 | } |
| 115 | |
| 116 | fn merge_legacy(dot_dir: &Path, legacy: &LegacyDatabases) -> Result<(), RepositoryError> { |
| 117 | let merging = dot_dir.join(MERGING_FILE); |
no test coverage detected