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
Unknown Object (File)
Thu, Apr 25, 12:08 AM
Unknown Object (File)
Fri, Apr 19, 2:45 AM
Unknown Object (File)
Fri, Apr 19, 2:45 AM
Unknown Object (File)
Fri, Apr 19, 2:45 AM
Unknown Object (File)
Thu, Apr 18, 3:54 PM
Unknown Object (File)
Wed, Apr 17, 12:40 PM
Unknown Object (File)
Tue, Apr 16, 12:50 PM
Unknown Object (File)
Thu, Apr 11, 4:05 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