Page MenuHomePhabricator

Modularize remaining TYPE_ACTION transactions in Differential, reducing calls to ArcanistDifferentialRevisionStatus
ClosedPublic

Authored by epriestley on Aug 11 2017, 10:18 PM.
Tags
None
Referenced Files
F19061957: D18412.diff
Sat, Nov 29, 2:09 PM
F19030921: D18412.id.diff
Mon, Nov 24, 10:37 PM
F19016360: D18412.id.diff
Sun, Nov 23, 3:53 AM
F18897632: D18412.id44247.diff
Fri, Nov 7, 5:30 PM
F18850463: D18412.id.diff
Thu, Oct 30, 5:02 PM
F18845768: D18412.diff
Oct 29 2025, 2:18 PM
F18783166: D18412.id44247.diff
Oct 13 2025, 4:24 AM
F18768503: D18412.id.diff
Oct 8 2025, 3:57 AM
Subscribers
None

Details

Summary

Ref T2543. This cleans up a couple of remaining rough edges:

  • We could do an older TYPE_ACTION "close" via the daemons.
  • We could do an older TYPE_ACTION "close" via arc close-revision, explicitly or implicitly in arc land, via API (differential.close).
  • We could do an older TYPE_ACTION "rethink" ("Plan Changes") via the API, via arc diff --plan-changes (differential.createcomment).

Move these to modern modular transactions, then get rid of all the validation and application logic for them. This nukes a bunch of ArcanistDifferentialRevision::... junk.

Test Plan
  • Used bin/repository reparse --message rXYZ... to reparse a commit, closing a corresponding revision.
  • Used differential.close to close a revision.
  • Used differential.createcomment to plan changes to a revision.
  • Reviewed transaction log for full "closed by commit" message (linking to commit and mentioning author).
  • Grepped for ::TYPE_ACTION to look for remaining callsites, didn't find any.
  • Grepped for differential.close and differential.createcomment in arcanist/ to look for anything suspicious, seemed clean.

Diff Detail

Repository
rP Phabricator
Lint
Lint Not Applicable
Unit
Tests Not Applicable