Skip to content

A conflicted file edit that a later replace supersedes still blocks build and status #378

Open

Description

@willgosnold

Record a file edit on an upstream path, hand-write a later change that replaces the same path, then let upstream change the edited line and sync. Sync writes conflict markers into the superseded edit's ours copy. Build and status then refuse with ours has conflict markers, though no output reads that copy, since the replace wins.

Reproduced identically on main (598249d) and on #368's head, which fixed the same case for copy destinations.

Expected: sync skips a superseded edit, and build and status ignore its copies, as #368 does for copy destinations.

Found during verification of #368 (journey J_superseded_conflict_upstream_path).

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions