@@ -250,7 +250,7 @@ private function buildDisplayRows(
250250    $ selected ) {
251251
252252    if  ($ blame_dict ) {
253-       $ epoch_list   = ipull ($ blame_dict , 'epoch ' );
253+       $ epoch_list   = ipull (ifilter ( $ blame_dict,  ' epoch ' ) , 'epoch ' );
254254      $ epoch_min    = min ($ epoch_list );
255255      $ epoch_max    = max ($ epoch_list );
256256      $ epoch_range  = ($ epoch_max  - $ epoch_min ) + 1 ;
@@ -298,27 +298,30 @@ private function buildDisplayRows(
298298        } else  {
299299          $ blame  = $ blame_dict [$ rev ];
300300
301-           $ color_ratio  = ($ blame ['epoch ' ] - $ epoch_min ) / $ epoch_range ;
302- 
303-           $ color_value  = 0xF6  * (1.0  - $ color_ratio );
304-           $ color  = sprintf (
305-             '#%02x%02x%02x ' ,
306-             $ color_value ,
307-             0xF6 ,
308-             $ color_value );
301+           if  (!isset ($ blame ['epoch ' ])) {
302+             $ color  = '#ffd ' ; // Render as warning. 
303+           } else  {
304+             $ color_ratio  = ($ blame ['epoch ' ] - $ epoch_min ) / $ epoch_range ;
305+             $ color_value  = 0xF6  * (1.0  - $ color_ratio );
306+             $ color  = sprintf (
307+               '#%02x%02x%02x ' ,
308+               $ color_value ,
309+               0xF6 ,
310+               $ color_value );
311+           }
309312
310-           $ display_line ['epoch ' ] = $ blame[ 'epoch ' ] ;
313+           $ display_line ['epoch ' ] = idx ( $ blame,  'epoch ' ) ;
311314          $ display_line ['color ' ] = $ color ;
312315          $ display_line ['commit ' ] = $ rev ;
313316
314-           if  (isset ($ blame_dict [ $ rev ] ['handle ' ])) {
315-             $ author_link  = $ blame_dict [ $ rev ] ['handle ' ]->renderLink ();
317+           if  (isset ($ blame  ['handle ' ])) {
318+             $ author_link  = $ blame  ['handle ' ]->renderLink ();
316319          } else  {
317320            $ author_link  = phutil_render_tag (
318321              'span ' ,
319322              array (
320323              ),
321-               phutil_escape_html ($ blame_dict [ $ rev ] ['author ' ]));
324+               phutil_escape_html ($ blame  ['author ' ]));
322325          }
323326          $ display_line ['author ' ] = $ author_link ;
324327
0 commit comments