Homec4science

Implement support for creating and updating fragments from ZIPs

Authored by James Rhodes <jrhodes@redpointsoftware.com.au> on Dec 7 2013, 03:37.

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

Committed
James Rhodes <jrhodes@redpointsoftware.com.au>Dec 7 2013, 03:37
Pushed
aubortJan 31 2017, 17:16
Parents
rPHccd4ae563827: Implement "Download ZIP" controller for Phragment
Branches
Unknown
Tags
Unknown

Event Timeline

James Rhodes <jrhodes@redpointsoftware.com.au> committed rPH25e7b7d53cd5: Implement support for creating and updating fragments from ZIPs (authored by James Rhodes <jrhodes@redpointsoftware.com.au>).Dec 7 2013, 03:37