Show remote activity on iPhone Home

This commit is contained in:
2026-08-11 17:12:33 +02:00
parent daf122aff3
commit 8e883f5ccf
9 changed files with 3377 additions and 35 deletions

View File

@@ -453,6 +453,23 @@ fn fetched_branches_fast_forward_and_report_typed_conflicts() -> TestResult {
let snapshot = git.snapshot(Some(remote), 5)?;
assert_eq!(snapshot.remote().expect("remote status").ahead(), 1);
assert_eq!(snapshot.remote().expect("remote status").behind(), 1);
let divergence = git.divergence(remote, 10)?;
assert_eq!(divergence.remote().ahead(), 1);
assert_eq!(divergence.remote().behind(), 1);
assert_eq!(divergence.incoming().len(), 1);
assert_eq!(divergence.incoming()[0].commit().message(), "Remote change");
assert_eq!(divergence.incoming()[0].changes().len(), 1);
assert_eq!(
divergence.incoming()[0].changes()[0].path(),
Path::new("secret.gpg")
);
assert_eq!(divergence.outgoing().len(), 1);
assert_eq!(divergence.outgoing()[0].commit().message(), "Local change");
let totals_only = git.divergence(remote, 0)?;
assert_eq!(totals_only.remote().ahead(), 1);
assert_eq!(totals_only.remote().behind(), 1);
assert!(totals_only.incoming().is_empty());
assert!(totals_only.outgoing().is_empty());
assert_eq!(
git.resolve_fetched(