From f585f6fddd5e143c9ae897440414fd5bf998dc74 Mon Sep 17 00:00:00 2001 From: epriestley Date: Thu, 30 Jan 2014 09:45:03 -0800 Subject: [PATCH] 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 --- src/applications/repository/storage/PhabricatorRepository.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/applications/repository/storage/PhabricatorRepository.php b/src/applications/repository/storage/PhabricatorRepository.php index d7e229eb1e..47873dcdf3 100644 --- a/src/applications/repository/storage/PhabricatorRepository.php +++ b/src/applications/repository/storage/PhabricatorRepository.php @@ -1050,7 +1050,7 @@ final class PhabricatorRepository extends PhabricatorRepositoryDAO return false; } - if ($this->isGit()) { + if ($this->isGit() || $this->isHg()) { return true; }