feat(copies): matches between this PC and the server, Integrate and merge (owner review 6, v1.2.0) (#74)
CI / Build and test (push) Successful in 13m44s
CI / Windows tests and installer (push) Skipped
CI / YAML check (push) Successful in 16s
Release / Build, test and publish (push) Successful in 26m34s
CI / PostgreSQL 16 integration (push) Failing after 17m36s
CI / PostgreSQL 17 integration (push) Failing after 15m36s
CI / Docker image (push) Successful in 1m12s
Release / Server image (push) Failing after 15s

The same time-lapse on a server and on this PC under different ids, or twice on this PC, is recognised,
compared and settled as the owner asked in owner review 6.

Matches are found after each sync refresh, through the server's new photo lookup, and after the jobs that
change photos. The default is to ask every time. Server › Matches offers:
- Keep apart, which is remembered;
- Link only and Unlink;
- the Compare dialog: photos, details line by line, projects and the plan.

Integrate completes both sides. Photos default to Union, projects are copied across, and a losing version
goes to the trash only after a hash check. Afterwards new photos move by themselves, and deletions wait for
the user.

A merge of two local sequences verifies every photo before the other sequence goes to its archive's trash.
Upload all local skips suspected matches and flags them.

Migration 0012 adds the found_copies and copy_probes tables. Jobs 25 (Integrate) and 26 (MergeSequences) are
new, and so are the server capabilities photo-lookup and upload-into.

Refs #73

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: Alberto Balbo <alberto.balbo.96@gmail.com>
This commit was merged in pull request #74.
This commit is contained in:
Alby96andClaude Opus 5.5 authored and Alby96 committed 2026-11-18 15:20:29 +01:00
1 parent 43719bb5c5
commit f33bcac32e
586 files changed
+41546 -280

No files matched your search

+136
View File
@@ -1143,4 +1143,140 @@
<data name="Tooltips.Settings.VideosBrowse" xml:space="preserve"><value>Choose the videos folder</value></data>
<data name="Tooltips.Settings.VideosOpen" xml:space="preserve"><value>Open the videos folder in Explorer</value></data>
<data name="Tooltips.Archive.TrashRestoreVideo" xml:space="preserve"><value>Move this video back into its folder after a hash check; its sequence must be in the library</value></data>
<data name="Tooltips.Server.Sync.Filter.FoundCopies" xml:space="preserve"><value>Sequences that seem to be the same here and on the server, or twice on this PC.</value></data>
<data name="Tooltips.Server.Sync.Show" xml:space="preserve"><value>Show this list.</value></data>
<data name="Tooltips.Server.Sync.ShowSkipped" xml:space="preserve"><value>Show the sequences Upload all local left out, first in Local only.</value></data>
<data name="Tooltips.Server.Sync.ShowNotSent" xml:space="preserve"><value>Show the sequence whose new photos were not sent.</value></data>
<data name="Tooltips.Server.Sync.State.CopyFound" xml:space="preserve"><value>This sequence may also be on {0}. Compare to decide.</value></data>
<data name="Tooltips.Server.Sync.State.Skipped" xml:space="preserve"><value>Upload all local left this out: {0}.</value></data>
<data name="Tooltips.Server.Sync.State.NotSent" xml:space="preserve"><value>Photos did not move by themselves: {0}.</value></data>
<data name="Tooltips.Server.Sync.Skip.SuspectedCopy" xml:space="preserve"><value>it may be the same as a sequence on {0}</value><comment>{0} the server's name</comment></data>
<data name="Tooltips.Server.Sync.Skip.SuspectedCopyLocal" xml:space="preserve"><value>it may be the same as a sequence in {0}</value><comment>{0} the other archive&apos;s name</comment></data>
<data name="Tooltips.Server.Sync.Skip.KeptApart" xml:space="preserve"><value>you kept it apart from a match</value></data>
<data name="Tooltips.Server.Sync.Skip.ServerOriginals" xml:space="preserve"><value>it came from a server</value></data>
<data name="Tooltips.Server.Sync.Skip.DeletedOnServer" xml:space="preserve"><value>the server deleted its sequence</value></data>
<data name="Tooltips.Server.Sync.Skip.Busy" xml:space="preserve"><value>a job is integrating or merging it</value></data>
<data name="Tooltips.Server.Sync.UploadAllSkipping.one" xml:space="preserve"><value>Upload the sequences only here; {0} is left out (its row says why).</value></data>
<data name="Tooltips.Server.Sync.UploadAllSkipping.other" xml:space="preserve"><value>Upload the sequences only here; {0} are left out (each row says why).</value></data>
<data name="Tooltips.Server.Copies.Find" xml:space="preserve"><value>Look for matches of these sequences on {0} and on this PC now.</value></data>
<data name="Tooltips.Server.Copies.FindLocal" xml:space="preserve"><value>Look for matches among this PC's archives now.</value></data>
<data name="Tooltips.Server.Copies.Compare" xml:space="preserve"><value>See which photos, details and projects differ between the two sequences.</value></data>
<data name="Tooltips.Server.Copies.Part.Photos" xml:space="preserve"><value>The photos each sequence has, and which version each side keeps.</value></data>
<data name="Tooltips.Server.Copies.Part.Details" xml:space="preserve"><value>The title, tags, rating, notes and settings that differ, line by line.</value></data>
<data name="Tooltips.Server.Copies.Part.Projects" xml:space="preserve"><value>The editing projects of each sequence, and where they go.</value></data>
<data name="Tooltips.Server.Copies.Part.Plan" xml:space="preserve"><value>What each side receives and loses before anything runs.</value></data>
<data name="Tooltips.Server.Copies.Integrate" xml:space="preserve"><value>Complete both sequences, settle the differences once, then keep them in sync.</value></data>
<data name="Tooltips.Server.Copies.Merge" xml:space="preserve"><value>Merge the two into the kept sequence; the other goes to the trash after verification.</value></data>
<data name="Tooltips.Server.Copies.KeepApart" xml:space="preserve"><value>Keep both as separate sequences and stop asking. Upload all local leaves this one out.</value></data>
<data name="Tooltips.Server.Copies.LinkOnly" xml:space="preserve"><value>Link the two without moving photos; the next comparison settles equal details.</value></data>
<data name="Tooltips.Server.Copies.Unlink" xml:space="preserve"><value>Stop syncing these sequences; nothing is deleted.</value></data>
<data name="Tooltips.Server.Copies.UndoUnlink" xml:space="preserve"><value>Link the two again.</value></data>
<data name="Tooltips.Server.Copies.UndoKeepApart" xml:space="preserve"><value>Show this match again.</value></data>
<data name="Tooltips.Server.Copies.AskAgain" xml:space="preserve"><value>Show this pair as a match again.</value></data>
<data name="Tooltips.Server.Copies.UploadAgain" xml:space="preserve"><value>Send this PC's sequence to {0} as a new sequence.</value></data>
<data name="Tooltips.Server.Copies.KeepHere" xml:space="preserve"><value>Keep this PC's sequence and stop asking; Upload all local leaves it out.</value></data>
<data name="Tooltips.Server.Copies.ToTrash" xml:space="preserve"><value>Move these photos to this PC's archive trash, after a plan you confirm.</value></data>
<data name="Tooltips.Server.Copies.ToTrashSequence" xml:space="preserve"><value>Move this PC's sequence to the archive trash; it may be the last copy.</value></data>
<data name="Tooltips.Server.Copies.DeleteOnServer" xml:space="preserve"><value>Move these photos to the server's trash, after a plan you confirm.</value></data>
<data name="Tooltips.Server.Copies.SelectFirst" xml:space="preserve"><value>Select the photos first.</value></data>
<data name="Tooltips.Server.Copies.Review" xml:space="preserve"><value>Open the comparison at the photos deleted on the other side.</value></data>
<data name="Tooltips.Server.Copies.ReviewFound" xml:space="preserve"><value>Open the list of matches found.</value></data>
<data name="Tooltips.Server.Copies.Drop" xml:space="preserve"><value>Move this version to the trash of each side that holds it.</value></data>
<data name="Tooltips.Server.Copies.InMain" xml:space="preserve"><value>Main's time-lapse and renders use this version; the other is excluded.</value></data>
<data name="Tooltips.Server.Copies.Choose" xml:space="preserve"><value>Go to the choices still missing.</value></data>
<data name="Tooltips.Server.Copies.State.Candidate" xml:space="preserve"><value>{0} % of the photos are shared. Compare to decide.</value></data>
<data name="Tooltips.Server.Copies.State.KeptApart" xml:space="preserve"><value>You chose to keep these apart on {0}.</value></data>
<data name="Tooltips.Server.Copies.State.Linked" xml:space="preserve"><value>Linked: sync compares them; photos move on Upload and Download.</value></data>
<data name="Tooltips.Server.Copies.State.Integrating" xml:space="preserve"><value>Being integrated; the job shows each step.</value></data>
<data name="Tooltips.Server.Copies.State.Merging" xml:space="preserve"><value>Being merged; the job shows each step.</value></data>
<data name="Tooltips.Server.Copies.Plan.DeletedInOther" xml:space="preserve"><value>Photos the other sequence deleted that the kept one holds: they stay in the kept one.</value></data>
<data name="Tooltips.Server.Copies.State.Integrated" xml:space="preserve"><value>New photos move both ways by themselves; deletions wait for you.</value></data>
<data name="Tooltips.Server.Copies.State.IntegratedByHand" xml:space="preserve"><value>Some photos were left out: new photos move on Upload and Download.</value></data>
<data name="Tooltips.Server.Copies.State.RemoteGone" xml:space="preserve"><value>The server deleted its sequence; this PC's sequence is unchanged.</value></data>
<data name="Tooltips.Server.Copies.State.KeptHere" xml:space="preserve"><value>You kept this PC's sequence after the server deleted its own.</value></data>
<data name="Tooltips.Server.Copies.State.DeletedThere.one" xml:space="preserve"><value>{0} photo was deleted on the other side; it stays here until you choose.</value></data>
<data name="Tooltips.Server.Copies.State.DeletedThere.other" xml:space="preserve"><value>{0} photos were deleted on the other side; they stay here until you choose.</value></data>
<data name="Tooltips.Server.Copies.Class.Same" xml:space="preserve"><value>The same files on both sides, by SHA-256.</value></data>
<data name="Tooltips.Server.Copies.Class.SameUnhashed" xml:space="preserve"><value>Same size and capture time; one side is not verified yet. A merge checks them by hash first.</value></data>
<data name="Tooltips.Server.Copies.Class.SameUnhashed.Integrate" xml:space="preserve"><value>Same size and capture time; one side is not verified yet. Integrate counts them as one photo and moves neither.</value></data>
<data name="Tooltips.Server.Copies.Class.OnlyHere" xml:space="preserve"><value>Photos only this side holds; Integrate copies them to the other.</value></data>
<data name="Tooltips.Server.Copies.Class.OnlyHere.Choose" xml:space="preserve"><value>Photos only this side holds; Integrate copies those you tick to the other.</value></data>
<data name="Tooltips.Server.Copies.Class.OnlyHere.Merge" xml:space="preserve"><value>Photos only the kept sequence holds; they stay in it.</value></data>
<data name="Tooltips.Server.Copies.Class.OnlyThere" xml:space="preserve"><value>Photos only the other side holds; Integrate copies them here.</value></data>
<data name="Tooltips.Server.Copies.Class.OnlyThere.Choose" xml:space="preserve"><value>Photos only the other side holds; Integrate copies those you tick here.</value></data>
<data name="Tooltips.Server.Copies.Class.OnlyThere.Merge" xml:space="preserve"><value>Photos only the other sequence holds; Merge copies each into the kept one.</value></data>
<data name="Tooltips.Server.Copies.Class.Differs" xml:space="preserve"><value>Same name and capture time, different files. Union keeps both versions.</value></data>
<data name="Tooltips.Server.Copies.Class.Differs.ThisPcWins" xml:space="preserve"><value>Same name and capture time, different files. This PC's file replaces the server's, which goes to the trash.</value></data>
<data name="Tooltips.Server.Copies.Class.Differs.OtherWins" xml:space="preserve"><value>Same name and capture time, different files. The server's file replaces this PC's, which goes to the trash.</value></data>
<data name="Tooltips.Server.Copies.Class.Differs.KeptWins" xml:space="preserve"><value>Same name and capture time, different files. The kept sequence's file stays; the other's goes to the trash with it.</value></data>
<data name="Tooltips.Server.Copies.Class.Differs.OtherCopyWins" xml:space="preserve"><value>Same name and capture time, different files. The other sequence's file replaces the kept one's, which goes to the trash.</value></data>
<data name="Tooltips.Server.Copies.Class.Differs.Choose" xml:space="preserve"><value>Same name and capture time, different files. Choose for each photo; Leave changes nothing.</value></data>
<data name="Tooltips.Server.Copies.Class.Differs.ChooseMerge" xml:space="preserve"><value>Same name and capture time, different files. Choose for each photo: keep both, the kept one's or the other's.</value></data>
<data name="Tooltips.Server.Copies.Class.Differs.Merge" xml:space="preserve"><value>Same name and capture time, different files. The kept sequence keeps both versions.</value></data>
<data name="Tooltips.Server.Copies.Class.Converted" xml:space="preserve"><value>The same photo in another encoding; counted as one.</value></data>
<data name="Tooltips.Server.Copies.Class.DeletedHere" xml:space="preserve"><value>Deleted on this side, still on the other. Never brought back.</value></data>
<data name="Tooltips.Server.Copies.Class.DeletedThere" xml:space="preserve"><value>Deleted on the other side, still here. Nothing is deleted unless you confirm.</value></data>
<data name="Tooltips.Server.Copies.Class.Versions" xml:space="preserve"><value>Two files of one capture time; the other side's is excluded in Main.</value></data>
<data name="Tooltips.Server.Copies.Policy" xml:space="preserve"><value>The photo choice for this run; Settings › Server gives the default.</value></data>
<data name="Tooltips.Server.Copies.Policy.Union" xml:space="preserve"><value>Every photo of both sequences ends up in both; differing ones keep both versions.</value></data>
<data name="Tooltips.Server.Copies.Policy.ChoosePerPhoto" xml:space="preserve"><value>You tick which photos to bring; nothing is preselected.</value></data>
<data name="Tooltips.Server.Copies.Policy.ThisPcWins" xml:space="preserve"><value>Photos only on one side go to both; for different photos this PC's version replaces the server's, which goes to the trash.</value></data>
<data name="Tooltips.Server.Copies.Policy.OtherWins" xml:space="preserve"><value>Photos only on one side go to both; for different photos the server's version replaces this PC's, which goes to the trash.</value></data>
<data name="Tooltips.Server.Copies.Policy.KeptWins" xml:space="preserve"><value>Every photo of the other joins the kept one; for different photos the kept version stays.</value></data>
<data name="Tooltips.Server.Copies.Policy.OtherCopyWins" xml:space="preserve"><value>Every photo of the other joins the kept one; for different photos the other's version replaces the kept one's, which goes to the trash.</value></data>
<data name="Tooltips.Server.Copies.Bring" xml:space="preserve"><value>Copy this photo to the other side.</value></data>
<data name="Tooltips.Server.Copies.BringAll" xml:space="preserve"><value>Tick every photo of this list.</value></data>
<data name="Tooltips.Server.Copies.BringNone" xml:space="preserve"><value>Untick every photo of this list.</value></data>
<data name="Tooltips.Server.Copies.AllBoth" xml:space="preserve"><value>Keep both versions of every different photo.</value></data>
<data name="Tooltips.Server.Copies.Version" xml:space="preserve"><value>What to do with these two different files of one capture time.</value></data>
<data name="Tooltips.Server.Copies.Detail" xml:space="preserve"><value>The value both sequences take.</value></data>
<data name="Tooltips.Server.Copies.Detail.AllHere" xml:space="preserve"><value>Take this PC's value for every difference.</value></data>
<data name="Tooltips.Server.Copies.Detail.AllThere" xml:space="preserve"><value>Take the value of {0} for every difference.</value></data>
<data name="Tooltips.Server.Copies.Detail.UseHere" xml:space="preserve"><value>Take this PC's value: {0}</value></data>
<data name="Tooltips.Server.Copies.Detail.UseThere" xml:space="preserve"><value>Take the value of {0}: {1}</value></data>
<data name="Tooltips.Server.Copies.Detail.UseKept" xml:space="preserve"><value>Take the kept sequence's value: {0}</value></data>
<data name="Tooltips.Server.Copies.Detail.UseOther" xml:space="preserve"><value>Take the other sequence's value: {0}</value></data>
<data name="Tooltips.Server.Copies.Detail.AllKept" xml:space="preserve"><value>Take the kept sequence's value for every difference.</value></data>
<data name="Tooltips.Server.Copies.Detail.AllOther" xml:space="preserve"><value>Take the other sequence's value for every difference.</value></data>
<data name="Tooltips.Server.Copies.Projects.CopyAcross" xml:space="preserve"><value>Each side's other projects appear on the other home with their history, renamed on a clash.</value></data>
<data name="Tooltips.Server.Copies.Projects.Leave" xml:space="preserve"><value>Other projects stay where they are; Edit marks the two workspace projects as twins.</value></data>
<data name="Tooltips.Server.Copies.Projects.MergeAlways" xml:space="preserve"><value>A merge always copies the other's projects: its home goes to the trash.</value></data>
<data name="Tooltips.Server.Copies.Projects.Main" xml:space="preserve"><value>Main follows the details you choose.</value></data>
<data name="Tooltips.Server.Copies.Plan.Free" xml:space="preserve"><value>Free space where the photos are filed; the trash frees space only once emptied.</value></data>
<data name="Tooltips.Server.Copies.Plan.Quota" xml:space="preserve"><value>What your account may still store on the server.</value></data>
<data name="Tooltips.Server.Copies.Plan.LastCopies" xml:space="preserve"><value>These photos exist nowhere else; they go to the trash and can be restored from there.</value></data>
<data name="Tooltips.Server.Copies.Plan.LeftOut" xml:space="preserve"><value>Photos you left out stay on one side, so new photos keep moving only on Upload and Download.</value></data>
<data name="Tooltips.Server.Copies.Plan.ServerUsesOurs" xml:space="preserve"><value>The server's Main switches to this PC's version of each different photo; its renders of them change.</value></data>
<data name="Tooltips.Server.Copies.Plan.SessionKeys" xml:space="preserve"><value>Later imports of the same card or folder join the kept sequence.</value></data>
<data name="Tooltips.Server.Copies.Plan.SessionKeysKept" xml:space="preserve"><value>Keys the archive already uses stay: {0}.</value></data>
<data name="Tooltips.Server.Copies.Plan.Relink" xml:space="preserve"><value>The link moves to the kept sequence; the next comparison settles equal details or shows a conflict.</value></data>
<data name="Tooltips.Server.Copies.KeptCopy" xml:space="preserve"><value>The sequence that stays; the other's photos join it.</value></data>
<data name="Tooltips.Server.Copies.Cancel" xml:space="preserve"><value>Close without changing anything.</value></data>
<data name="Tooltips.Server.Copies.LinkTaken" xml:space="preserve"><value>One of these sequences is already linked to another sequence of {0}.</value></data>
<data name="Tooltips.Server.Copies.NeedsNewerServer" xml:space="preserve"><value>This server needs an update to integrate sequences.</value></data>
<data name="Tooltips.Server.Copies.SignIn" xml:space="preserve"><value>Sign in to {0} to act on this pair.</value></data>
<data name="Tooltips.Server.Copies.Confirm.Safe" xml:space="preserve"><value>Close without changing anything.</value></data>
<data name="Tooltips.Server.Copies.Confirm.Replace.Action" xml:space="preserve"><value>Integrate, then move the replaced versions to the trash.</value></data>
<data name="Tooltips.Server.Copies.Confirm.Merge.Action" xml:space="preserve"><value>Merge, then move the other sequence to the trash after verification.</value></data>
<data name="Tooltips.Jobs.OpenMatch" xml:space="preserve"><value>Show the sequences this job worked on.</value></data>
<data name="Tooltips.Library.Status.CopyFound" xml:space="preserve"><value>Also on {0} · {1} % shared.</value></data>
<data name="Tooltips.Library.Status.CopyFoundLocal" xml:space="preserve"><value>Also in {0}.</value></data>
<data name="Tooltips.Library.Status.DeletedThere" xml:space="preserve"><value>Photos of this sequence were deleted on {0}; they stay here until you choose.</value></data>
<data name="Tooltips.Library.Status.RemoteGone" xml:space="preserve"><value>{0} deleted its sequence; this PC's sequence stays until you choose.</value></data>
<data name="Tooltips.Library.Compare" xml:space="preserve"><value>Compare this sequence with its match.</value></data>
<data name="Tooltips.Library.Versions" xml:space="preserve"><value>Show the photos this sequence keeps in two versions.</value></data>
<data name="Tooltips.Library.Versions.Drop" xml:space="preserve"><value>Move this version to the archive trash; the other version stays.</value></data>
<data name="Tooltips.Editor.Picker.Twin" xml:space="preserve"><value>Also at {0}: {1}.</value></data>
<data name="Tooltips.Settings.CopyLinking" xml:space="preserve"><value>What Chronos does with the matches it finds (the same sequence twice). Linked sequences stay in sync.</value></data>
<data name="Tooltips.Settings.CopyLinking.AskAlways" xml:space="preserve"><value>Show every match; nothing is linked until you choose.</value></data>
<data name="Tooltips.Settings.CopyLinking.WhenIdentical" xml:space="preserve"><value>Link sequences with exactly the same photos by themselves; ask for the others.</value></data>
<data name="Tooltips.Settings.CopyLinking.WhenHalf" xml:space="preserve"><value>Link sequences that start in the same second with the same camera and share at least half of their photos, as Chronos 1.1 did.</value></data>
<data name="Tooltips.Settings.CopyPhotos" xml:space="preserve"><value>The photo choice an Integrate starts from; you can change it each time.</value></data>
<data name="Tooltips.Settings.CopyPhotos.Union" xml:space="preserve"><value>Every photo of both sequences ends up in both; differing ones keep both versions.</value></data>
<data name="Tooltips.Settings.CopyPhotos.ChoosePerPhoto" xml:space="preserve"><value>You tick which photos to bring; nothing is preselected.</value></data>
<data name="Tooltips.Settings.CopyPhotos.ThisPcWins" xml:space="preserve"><value>Photos only on one side go to both; for different photos this PC's version replaces the server's, which goes to the trash.</value></data>
<data name="Tooltips.Settings.CopyPhotos.OtherWins" xml:space="preserve"><value>Photos only on one side go to both; for different photos the server's version replaces this PC's, which goes to the trash.</value></data>
<data name="Tooltips.Settings.CopyProjects" xml:space="preserve"><value>Whether an Integrate copies the other projects to the other home, renamed on a clash.</value></data>
<data name="Tooltips.Settings.CopyProjects.CopyAcross" xml:space="preserve"><value>Each side's other projects appear on the other home with their history, renamed on a clash.</value></data>
<data name="Tooltips.Settings.CopyProjects.Leave" xml:space="preserve"><value>Other projects stay where they are; Edit marks the two workspace projects as twins.</value></data>
</root>