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
F13330022: D18884.diff
Mon, Jun 17, 2:28 AM
F13317480: D18884.diff
Thu, Jun 13, 9:30 AM
F13315425: D18884.id.diff
Wed, Jun 12, 1:27 PM
F13314172: D18884.diff
Tue, Jun 11, 5:43 PM
F13303213: D18884.diff
Sat, Jun 8, 6:27 AM
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
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