20260608 默认rsync scope切到module-root
This commit is contained in:
@@ -22,7 +22,7 @@ pub enum RsyncScopePolicy {
|
||||
|
||||
impl Default for RsyncScopePolicy {
|
||||
fn default() -> Self {
|
||||
Self::Host
|
||||
Self::ModuleRoot
|
||||
}
|
||||
}
|
||||
|
||||
@@ -563,15 +563,15 @@ mod tests {
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn system_rsync_dedup_key_uses_host_scope_by_default() {
|
||||
fn system_rsync_dedup_key_uses_module_root_by_default() {
|
||||
let fetcher = SystemRsyncFetcher::new(SystemRsyncConfig::default());
|
||||
assert_eq!(
|
||||
fetcher.dedup_key("rsync://example.net/repo/ta/ca/publication-point/"),
|
||||
"rsync://example.net/repo/ta/ca/publication-point/"
|
||||
"rsync://example.net/repo/"
|
||||
);
|
||||
assert_eq!(
|
||||
fetcher.failure_dedup_key("rsync://example.net/repo/ta/ca/publication-point/"),
|
||||
Some("rsync://example.net/".to_string())
|
||||
None
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user