Page MenuHomePhabricator

Support "changed filename" and "file content" fields for commit content Herald rules
ClosedPublic

Authored by epriestley on Dec 18 2013, 9:21 PM.
Tags
None
Referenced Files
Unknown Object (File)
Tue, Dec 17, 10:01 AM
Unknown Object (File)
Tue, Dec 10, 1:22 PM
Unknown Object (File)
Fri, Dec 6, 5:35 AM
Unknown Object (File)
Mon, Dec 2, 8:25 PM
Unknown Object (File)
Tue, Nov 26, 5:59 PM
Unknown Object (File)
Fri, Nov 22, 12:45 AM
Unknown Object (File)
Nov 17 2024, 11:01 PM
Unknown Object (File)
Nov 14 2024, 5:39 AM
Subscribers

Details

Summary

Ref T4195. Adds support for diff content rules.

Test Plan

Pushed SVN and Git changes through, saw them generate reasonable transcripts. Mercurial still isn't hooked up to this phase.

Diff Detail

Branch
hcommit2
Lint
Lint Passed
SeverityLocationCodeMessage
Advicesrc/applications/diffusion/engine/DiffusionCommitHookEngine.php:908XHP16TODO Comment
Unit
Tests Passed

Event Timeline

btrahan added inline comments.
src/applications/diffusion/engine/DiffusionCommitHookEngine.php
906

this is un-used

src/applications/diffusion/herald/HeraldPreCommitContentAdapter.php
175

does getFileName include path? (wondering if its always unique?)

src/applications/diffusion/herald/HeraldPreCommitContentAdapter.php
175

Yeah, it's the full path from the repository root.

epriestley updated this revision to Unknown Object (????).Dec 18 2013, 10:16 PM
  • Remove unused variable.