Homec4science

Wrap basic diff/revision association in a transaction

Authored by epriestley <git@epriestley.com> on Feb 3 2012, 01:03.

Description

Wrap basic diff/revision association in a transaction

Summary:
This doesn't cover every case exhaustively (see comments) but should cover like
98% of the practical cases.

This makes one workflow modification: willWriteRevision() was previously
guaranteed to have a revisionID / revisionPHID and no longer is. I verified that
no field implementations depend on this behavior. Fields which depend on IDs
should be using didWriteRevision() instead.

Test Plan: Inserted a "throw" into the middle of the transactions and created
revisions; they didn't orphan. Created revisions normally, they worked
correctly.

Reviewers: btrahan, nh

Reviewed By: btrahan

CC: aran, epriestley

Maniphest Tasks: T605

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

Details

Committed
epriestley <git@epriestley.com>Feb 3 2012, 01:03
Pushed
aubortJan 31 2017, 17:16
Parents
rPHdc36317ea48f: Use 'ps <pid>' to test for process existence if posix is not available
Branches
Unknown
Tags
Unknown

Event Timeline

epriestley <git@epriestley.com> committed rPHc86dfd84d9ca: Wrap basic diff/revision association in a transaction (authored by epriestley <git@epriestley.com>).Feb 3 2012, 01:03