mirror of
https://we.phorge.it/source/phorge.git
synced 2024-12-01 03:02:43 +01:00
64509dcca7
Summary: Ref T11114. This creates `differential.revision.edit` (a modern, v3 API method) and redefines the existing methods in terms of it. Both `differential.createrevision` and `differential.updaterevision` are now internally implemented by building a `differential.revision.edit` API call and then executing it. I //think// this covers everything except custom fields, which need some tweaking to work with EditEngine. I'll clean that up in the next change. Test Plan: - Created, updated, and edited revisions via `arc`. - Called APIs manually via test console. - Stored custom fields ("Blame Rev", "Revert Plan") aren't exposed yet. Reviewers: chad Reviewed By: chad Maniphest Tasks: T11114 Differential Revision: https://secure.phabricator.com/D17067
24 lines
388 B
PHP
24 lines
388 B
PHP
<?php
|
|
|
|
final class DifferentialGitSVNIDCommitMessageField
|
|
extends DifferentialCommitMessageField {
|
|
|
|
const FIELDKEY = 'gitSVNID';
|
|
|
|
public function getFieldName() {
|
|
return pht('git-svn-id');
|
|
}
|
|
|
|
public function getFieldOrder() {
|
|
return 900001;
|
|
}
|
|
|
|
public function isFieldEditable() {
|
|
return false;
|
|
}
|
|
|
|
public function isTemplateField() {
|
|
return false;
|
|
}
|
|
|
|
}
|