This website requires JavaScript.
Explore
Help
Sign in
revi-archive
/
phorge-phorge
Watch
1
Star
0
Fork
You've already forked phorge-phorge
0
mirror of
https://we.phorge.it/source/phorge.git
synced
2024-12-25 23:10:57 +01:00
Code
Issues
Releases
Wiki
Activity
675cf3f6a3
phorge-phorge
/
src
/
applications
/
differential
/
exception
/
DifferentialFieldParseException.php
6 lines
74 B
PHP
Raw
Normal View
History
Unescape
Escape
differential.parsecommitmessage Test plan: meta
2011-02-06 22:42:00 +01:00
<
?
php
Drive Differential commit message parsing through extensible fields Summary: I think this is the last major step -- use the fields to parse commit messages, not a hard-coded list of stuff. This adds two primary methods to fields, one to get all the labels they'll parse (so we can do "CC" and "CCs" and treat them as the same field) and one to parse the string into a canonical representation (e.g., lookup reviewers and such). You'll need to impelement the one block of task-specific stuff I removed in Facebook's task field: list($pre_comment) = split(' -- ', $data); $data = array_filter(preg_split('/[^\d]+/', $pre_comment)); foreach ($data as $k => $v) { $data[$k] = (int)$v; } $data = array_unique($data); break; Otherwise I think this is clean. Test Plan: - Called the conduit method with various commit messages, parsed fields/errors seemed correct. - "arc diff"'d this diff onto localhost, then updated it. - "arc amend"'d this diff. Reviewers: jungejason, tuomaspelkonen, aran Reviewed By: jungejason CC: aran, jungejason, epriestley Differential Revision: 829
2011-08-18 21:08:18 +02:00
final
class
DifferentialFieldParseException
extends
Exception
{
differential.parsecommitmessage Test plan: meta
2011-02-06 22:42:00 +01:00
}
Copy permalink