Ref T13667. When a revision's diff has no changesets (usually because Diffusion performed an automatic update with an empty commit), the UI currently tries to "min()" an empty array and fatals.
Handle this case properly.
Differential D21760
Fix an issue where we may "min()" an empty array when viewing a revision with no changesets epriestley on Apr 20 2022, 4:37 PM. Authored by Tags None Referenced Files
Subscribers
Details Ref T13667. When a revision's diff has no changesets (usually because Diffusion performed an automatic update with an empty commit), the UI currently tries to "min()" an empty array and fatals. Handle this case properly.
Diff Detail
Event Timeline
Comment Actions Use a simpler "is new?" test, by just testing if the changeset ID is in the new list.
I'm not completely sure these tests are actually equivalent, but couldn't find any behavioral changes, and this code would be more robust if it was not ID-order dependent anyway. |