Page MenuHomePhabricator

Diffusion / Herald - tweak "Accepted Differential Revision exists" Herald field
ClosedPublic

Authored by btrahan on Aug 29 2014, 11:48 PM.
Tags
None
Referenced Files
Unknown Object (File)
Jul 8 2026, 12:38 AM
Unknown Object (File)
Jun 20 2026, 5:21 AM
Unknown Object (File)
Apr 16 2026, 1:23 AM
Unknown Object (File)
Mar 28 2026, 8:25 AM
Unknown Object (File)
Mar 26 2026, 11:45 PM
Unknown Object (File)
Mar 24 2026, 7:00 AM
Unknown Object (File)
Mar 7 2026, 7:24 AM
Unknown Object (File)
Feb 9 2026, 10:52 PM

Details

Summary

make it use the value of the revision before any post-commit magic has occurred. Fixes T4754

Test Plan

made a herald rule that said "if revision exists, and revision accept does not exists, block push". tried to push a commit that had a revision that wasn't accepted and I was blocked.

Diff Detail

Repository
rP Phabricator
Lint
Lint Skipped
Unit
Tests Skipped

Event Timeline

btrahan retitled this revision from to Diffusion / Herald - tweak "Accepted Differential Revision exists" Herald field.
btrahan updated this object.
btrahan edited the test plan for this revision. (Show Details)
btrahan added a reviewer: epriestley.
epriestley edited edge metadata.

One inline.

src/applications/repository/worker/commitmessageparser/PhabricatorRepositoryCommitMessageParserWorker.php
113–115

We should only write this if it isn't set yet.

Otherwise, reparsing a commit with scripts/repository/reparse.php will incorrectly overwrite it with "closed".

This revision is now accepted and ready to land.Sep 3 2014, 9:25 PM
btrahan edited edge metadata.

wrap the set in an if !get() so we only set it once

btrahan updated this revision to Diff 25047.

Closed by commit rP2f4addc67113 (authored by @btrahan).