1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-12-30 01:10:58 +01:00

Enable "Allow Dangerous Changes" config for Mercurial repositories

Summary:
Fixes T4357. The Mercurial commit hooks enforce dangerous change protection, but the UI doesn't actually let you configure it.

This was just an oversight (I never went back and enabled it) -- allow it to be configured in the UI.

Test Plan: Clicked "Edit Repository" on a hosted Mercurial repository, saw option to enable dangerous changes.

Reviewers: btrahan, chad

Reviewed By: chad

CC: aran

Maniphest Tasks: T4357

Differential Revision: https://secure.phabricator.com/D8108
This commit is contained in:
epriestley 2014-01-30 09:45:03 -08:00
parent 4a6239d53c
commit f585f6fddd

View file

@ -1050,7 +1050,7 @@ final class PhabricatorRepository extends PhabricatorRepositoryDAO
return false;
}
if ($this->isGit()) {
if ($this->isGit() || $this->isHg()) {
return true;
}