HomePhabricator

Implement "Revert to Version" functionality in Phragment

Description

Implement "Revert to Version" functionality in Phragment

Summary:
This functionality allows users to revert a fragment to a previous version from the history page.

Reverting a version actually creates a new version pointing at the same file as the version being "reverted" to. In this sense it acts pretty much like Git and other distributed VCS where once you have published a commit the only way to undo your changes is to create a new commit that reverts those changes.

Test Plan: Reverted a fragment to a version before it was deleted, then reverted it to when it was deleted and saw the new versions have the correct file PHIDs (including null for the deletion).

Reviewers: epriestley, Blessed Reviewers

Reviewed By: epriestley

CC: Korvin, epriestley, aran

Maniphest Tasks: T4205

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

Details

Provenance
hach-queAuthored on Dec 8 2013, 8:57 PM
hach-quePushed on Dec 8 2013, 8:57 PM
Reviewer
epriestley
Differential Revision
D7738: Implement "Revert to Version" functionality in Phragment
Parents
rPdabc7ea28dec: Render deleted files in Phragment as disabled
Branches
Unknown
Tags
Unknown

Event Timeline