mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-22 14:52:41 +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;
|
||||
}
|
||||
|
||||
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());
|
||||
foreach ($branches as $branch) {
|
||||
if ($this->shouldAutocloseBranch($branch)) {
|
||||
|
|
Loading…
Reference in a new issue