HomePhorge

Implement support for creating and updating fragments from ZIPs

Description

Implement support for creating and updating fragments from ZIPs

Summary:
This implements support for creating and updating fragments from ZIP files. It allows you to upload a ZIP via the Files application, create a fragment from it, and have it recursively imported into Phragment. Updating that folder with another ZIP will recursively create, update and delete files as appropriate.

The logic for creating and updating fragments from files has also been centralized into the PhragmentFragment class. Directories are also now supported; a directory fragment is simply a fragment that has no patches; thus a directory fragment can be converted to a file fragment by uploading a first patch for it.

Test Plan: Uploaded ZIP files through the interface and saw all of the fragments get created and updated as expected.

Reviewers: epriestley, #blessed_reviewers

Reviewed By: epriestley

CC: Korvin, epriestley, aran

Maniphest Tasks: T4205

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

Details

Provenance
James RhodesAuthored on Dec 6 2013, 6:37 PM
themackabuPushed on Mar 25 2025, 8:07 PM
Parents
rPccd4ae563827: Implement "Download ZIP" controller for Phragment
Branches
Unknown
Tags
Unknown

Event Timeline