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
F19033152: D10393.id25047.diff
Nov 25 2025, 9:11 AM
F18837354: D10393.diff
Oct 27 2025, 4:59 AM
F18833446: D10393.id.diff
Oct 26 2025, 3:29 AM
F18827491: D10393.diff
Oct 24 2025, 10:24 AM
F18779887: D10393.id25047.diff
Oct 11 2025, 3:41 PM
F18757956: D10393.id25013.diff
Oct 5 2025, 8:13 PM
F18757954: D10393.id25047.diff
Oct 5 2025, 8:13 PM
F18757952: D10393.id25046.diff
Oct 5 2025, 8:12 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
Branch
T4574
Lint
Lint Passed
Unit
Tests Passed
Build Status
Buildable 2422
Build 2426: [Placeholder Plan] Wait for 30 Seconds

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).