Homec4science

Fix a HunkQuery issue where no hunks load at all

Authored by epriestley <git@epriestley.com> on Apr 23 2014, 23:22.

Description

Fix a HunkQuery issue where no hunks load at all

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.

Reviewers: btrahan

Reviewed By: btrahan

Subscribers: zeeg, epriestley

Differential Revision: https://secure.phabricator.com/D8842

Details

Committed
epriestley <git@epriestley.com>Apr 23 2014, 23:22
Pushed
aubortJan 31 2017, 17:16
Parents
rPH4bbd2d52036c: Make an old migration a little more robust
Branches
Unknown
Tags
Unknown

Event Timeline

epriestley <git@epriestley.com> committed rPH5f033d580c58: Fix a HunkQuery issue where no hunks load at all (authored by epriestley <git@epriestley.com>).Apr 23 2014, 23:22