SyncOutcome class

The outcome of a synchronization, surfaced to the CLI.

Constructors

SyncOutcome({required MountRecord record, SyncDirection? direction, int applied = 0, String? publishedBranch, Conflict? conflict, List<String> transferredPaths = const [], List<String> copiedPaths = const [], List<String> removedPaths = const [], int bytesTransferred = 0, int bytesOnWire = 0, bool merged = false, List<String> pushedPaths = const [], List<String> pulledPaths = const []})
Creates a sync outcome.

Properties

applied → int
Number of changes applied.
final
bytesOnWire → int
Bytes actually pushed over the wire, after any transport compression.
final
bytesTransferred → int
Uncompressed bytes of transferred content (excludes deduplicated copies).
final
conflict → Conflict?
Set when the sync detected a conflict instead of applying.
final
copiedPaths → List<String>
Paths satisfied by a server-side copy of content already present (dedup).
final
direction → SyncDirection?
The direction actually run, or null for a no-op.
final
hashCode → int
The hash code for this object.
no setterinherited
isConflict → bool
Whether the sync ended in a conflict.
no setter
merged → bool
True when this was a two-way auto-merge of non-overlapping changes (some paths pushed, others pulled) rather than a single-direction sync.
final
publishedBranch → String?
For git pushes, the branch the changes were published to.
final
pulledPaths → List<String>
For a merged sync, the paths reconciled toward the local copy (writes and deletes applied locally).
final
pushedPaths → List<String>
For a merged sync, the paths reconciled toward the node (writes and deletes applied remotely).
final
record → MountRecord
The resulting mount record (with updated state).
final
removedPaths → List<String>
Paths deleted from the destination.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
transferredPaths → List<String>
Paths whose content was sent over the wire (directory mounts; empty for git, which syncs atomically on the node).
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited