Homec4science

Implement "Revert to Version" functionality in Phragment

Authored by James Rhodes <jrhodes@redpointsoftware.com.au> on Dec 8 2013, 21:57.

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

Committed
James Rhodes <jrhodes@redpointsoftware.com.au>Dec 8 2013, 21:57
Pushed
aubortJan 31 2017, 17:16
Parents
rPHdabc7ea28dec: Render deleted files in Phragment as disabled
Branches
Unknown
Tags
Unknown

Event Timeline

James Rhodes <jrhodes@redpointsoftware.com.au> committed rPHe1657877251b: Implement "Revert to Version" functionality in Phragment (authored by James Rhodes <jrhodes@redpointsoftware.com.au>).Dec 8 2013, 21:57