mirror of
https://we.phorge.it/source/phorge.git
synced 2025-02-20 02:38:39 +01:00
handle svn and hg for auto-close
Summary: in svn and hg (for now), no branch used. Test Plan: will test live Reviewers: epriestley CC: nh, vrana, aran, Korvin Differential Revision: https://secure.phabricator.com/D2839
This commit is contained in:
parent
c42f767e37
commit
969dcc5bae
1 changed files with 11 additions and 0 deletions
|
@ -433,6 +433,17 @@ final class PhabricatorRepository extends PhabricatorRepositoryDAO {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
switch ($this->getVersionControlSystem()) {
|
||||||
|
case PhabricatorRepositoryType::REPOSITORY_TYPE_SVN:
|
||||||
|
return true;
|
||||||
|
case PhabricatorRepositoryType::REPOSITORY_TYPE_GIT:
|
||||||
|
break;
|
||||||
|
case PhabricatorRepositoryType::REPOSITORY_TYPE_MERCURIAL:
|
||||||
|
return true;
|
||||||
|
default:
|
||||||
|
throw new Exception("Unrecognized version control system.");
|
||||||
|
}
|
||||||
|
|
||||||
$branches = $data->getCommitDetail('seenOnBranches', array());
|
$branches = $data->getCommitDetail('seenOnBranches', array());
|
||||||
foreach ($branches as $branch) {
|
foreach ($branches as $branch) {
|
||||||
if ($this->shouldAutocloseBranch($branch)) {
|
if ($this->shouldAutocloseBranch($branch)) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue