Page MenuHomePhabricator

Fix a fatal in blame when the viewer can't see a revision because of a permission issue
ClosedPublic

Authored by epriestley on Jan 19 2018, 9:41 PM.
Tags
None
Referenced Files
F19512265: D18884.diff
Mon, Jan 12, 3:23 PM
F19104249: D18884.id.diff
Dec 5 2025, 1:08 PM
F18874465: D18884.id45295.diff
Nov 5 2025, 2:37 PM
F18857067: D18884.id.diff
Nov 1 2025, 1:01 PM
F18852388: D18884.diff
Oct 31 2025, 8:25 AM
F18851131: D18884.id45297.diff
Oct 30 2025, 10:27 PM
F18705324: D18884.diff
Sep 28 2025, 10:49 AM
F18699361: D18884.id.diff
Sep 27 2025, 12:45 PM
Subscribers
None
Tokens
"Yellow Medal" token, awarded by allixsenos.

Details

Summary

Fixes T13040. To reproduce:

  • View a file with blame enabled, where some line has an associated revision (say, D123).
  • Edit D123 so it exists and is a valid revision, but the viewer can't see it.
  • Reload the page.

Instead, only add revisions to the map if we actually managed to load them.

Test Plan

Page no longer fatals.

Diff Detail

Repository
rP Phabricator
Lint
Lint Not Applicable
Unit
Tests Not Applicable