Page MenuHomePhabricator

Fix a HunkQuery issue where no hunks load at all
ClosedPublic

Authored by epriestley on Apr 22 2014, 10:29 PM.
Tags
None
Referenced Files
F14489173: D8842.diff
Wed, Jan 1, 8:53 PM
Unknown Object (File)
Sun, Dec 15, 11:22 PM
Unknown Object (File)
Wed, Dec 4, 8:17 AM
Unknown Object (File)
Nov 27 2024, 11:15 PM
Unknown Object (File)
Nov 26 2024, 10:05 AM
Unknown Object (File)
Nov 26 2024, 10:05 AM
Unknown Object (File)
Nov 26 2024, 10:05 AM
Unknown Object (File)
Nov 26 2024, 9:41 AM
Subscribers

Details

Summary

If you create a diff with no hunks (e.g., it adds a single empty file), we never attachHunks() so we throw on getHunks().

Instead, make sure changesets get hunks attached if they expect it.

Test Plan

Created a new diff with a single empty file in it.

Diff Detail

Repository
rP Phabricator
Branch
allempty
Lint
Lint Passed
Unit
Tests Passed
Build Status
Buildable 45
Build 45: [Placeholder Plan] Wait for 30 Seconds

Event Timeline

epriestley retitled this revision from to Fix a HunkQuery issue where no hunks load at all.
epriestley updated this object.
epriestley edited the test plan for this revision. (Show Details)
epriestley added a reviewer: btrahan.

@zeeg, this should fix the issue you ran into yesterday.

btrahan edited edge metadata.
This revision is now accepted and ready to land.Apr 23 2014, 7:00 PM
epriestley updated this revision to Diff 20993.

Closed by commit rP5f033d580c58 (authored by @epriestley).