web: MR range-diff page !500

merged merged by cmc on 2026-09-28 22:17 UTC · krz/gitbay:web-mr-range-diff into main

Discussion

cmc

The web shows what changed between two revisions of a merge request.

  • /{owner}/{repo}/mrs/{n}/range-diff?from=<rev>&to=<rev> renders mr range-diff through the same control command the CLI uses; a private repository is 404 to anyone who cannot read it.
  • The MR page lists each revision with a "compare to previous" link.
  • Tests use a real private MR with two revisions: owner 200, other user and anonymous 404 with no title in the body; the template escapes diff content; one-revision and same-revision states render.
  • Parity; CHANGELOG.

Stacked on !497 (web-settings-commands).

Closes #269