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
F13286340: D18884.diff
Tue, Jun 4, 7:02 AM
F13283772: D18884.diff
Sun, Jun 2, 4:18 PM
F13253526: D18884.diff
Sat, May 25, 2:44 AM
F13232166: D18884.diff
Tue, May 21, 1:04 AM
F13226932: D18884.diff
Mon, May 20, 12:16 AM
F13211023: D18884.diff
Fri, May 17, 5:25 AM
F13201595: D18884.id45295.diff
Tue, May 14, 1:24 PM
F13196344: D18884.diff
Sun, May 12, 11:11 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