Skip to content

feat(conflict): merge a change's heads, recording conflicts as statements - #91

Open
PiquelChips wants to merge 1 commit into
feat/land-ancestryfrom
feat/land-conflicts
Open

PiquelChips wants to merge 1 commit into
feat/land-ancestryfrom
feat/land-conflicts

Conversation

@PiquelChips

Copy link
Copy Markdown
Member

converge ended a change's divergence by keeping one head's files and dropping every other head's work. It now merges the heads' files, file by file, from the newest revision they all evolve from. Where heads changed the same text file, the file holds each version between conflict markers, and a binary file keeps one side.

Conflicts are explicit state:

  • The merge issues a core.conflict statement about the new revision, listing each conflicted path and the exact content written there.
  • A path is resolved once a later revision changes it, or with the new origin resolve <path>….
  • Every operation that makes a revision (a snapshot, describe, new, abandon, converge, resolve) carries unresolved paths forward.
  • The statements are written before the revision, so nothing can find the revision without its conflicts, even after a crash.
  • A conflict list whose payload is missing fails closed, rather than read as no conflicts.
  • Markers are only an editing aid: origin never scans files for them.

status lists the paths left. Past the first head, the markers label our side merged heads, since it holds every head merged so far.

Note

Written by Claude Opus 5.5 in Claude Code (via T3 Code)

@coderabbitai

coderabbitai Bot commented Nov 22, 2026 •

Copy link
Copy Markdown

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 34 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 593125da-d1e9-4ee9-bd7d-11219b863d7c
Commits

Reviewing files that changed from the base of the PR and between 753df71 and cb40e96.

Files selected for processing: 5

  • README.md
  • apps/origin-src/src/cli.rs
  • apps/origin-src/src/conflict.rs
  • apps/origin-src/src/workspace/mod.rs
  • apps/origin-src/tests/cli.rs
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

…ents

`converge` ended a change's divergence by keeping one head's files and
dropping every other head's work. It now merges the heads' files, file
by file, from the newest revision they all evolve from (`Ancestry`).
Where heads changed the same text file, it holds each version between
conflict markers; a binary file keeps the working copy's side.

The markers are only an editing aid: origin never scans files for them.
A conflict is explicit state instead. The merge issues a `core.conflict`
statement about the new revision, from its author, listing each
conflicted path and the exact entry written there (`Conflicts`). A path
stays unresolved while a revision still has that entry: editing the file
resolves it, whatever it then holds, and so does the new
`origin resolve <path>...`, which accepts it as it is.

Every operation that makes a revision (a snapshot, `describe`, `new`,
`abandon`, `converge`, `resolve`) carries the unresolved paths forward
in a `core.conflict` of its own. The statement is written before the
revision, so nothing can find the revision without its conflicts, even
after a crash. A conflict list whose payload is missing fails rather than
read as no conflicts. `status` lists the paths left.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant