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
F14384303: D10393.diff
Sat, Dec 21, 10:27 AM
Unknown Object (File)
Fri, Dec 13, 1:29 AM
Unknown Object (File)
Tue, Dec 3, 5:15 AM
Unknown Object (File)
Tue, Nov 26, 1:04 AM
Unknown Object (File)
Nov 20 2024, 10:11 PM
Unknown Object (File)
Nov 10 2024, 11:15 PM
Unknown Object (File)
Nov 10 2024, 11:15 PM
Unknown Object (File)
Nov 10 2024, 11:15 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).