From 17e1e7a65a8cabcc563bc23691417fd74defb170 Mon Sep 17 00:00:00 2001 From: epriestley Date: Wed, 25 Mar 2015 07:29:09 -0700 Subject: [PATCH] Document the need to purge caches after updating differential.generated-paths Summary: Fixes T6378. Test Plan: Set config to `/.*/`, created a new diff, everything was collapsed as generated. Reviewers: btrahan, chad Reviewed By: chad Subscribers: epriestley Maniphest Tasks: T6378 Differential Revision: https://secure.phabricator.com/D12159 --- .../config/PhabricatorDifferentialConfigOptions.php | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/src/applications/differential/config/PhabricatorDifferentialConfigOptions.php b/src/applications/differential/config/PhabricatorDifferentialConfigOptions.php index cae440678a..72596bf71a 100644 --- a/src/applications/differential/config/PhabricatorDifferentialConfigOptions.php +++ b/src/applications/differential/config/PhabricatorDifferentialConfigOptions.php @@ -20,6 +20,8 @@ final class PhabricatorDifferentialConfigOptions } public function getOptions() { + $caches_href = PhabricatorEnv::getDoclink('Managing Caches'); + $custom_field_type = 'custom:PhabricatorCustomFieldConfigOptionType'; $fields = array( @@ -123,8 +125,14 @@ final class PhabricatorDifferentialConfigOptions ->setDescription( pht( 'List of file regexps that should be treated as if they are '. - 'generated by an automatic process, and thus get hidden by '. - 'default in differential.')) + 'generated by an automatic process, and thus be hidden by '. + 'default in Differential.'. + "\n\n". + 'NOTE: This property is cached, so you will need to purge the '. + 'cache after making changes if you want the new configuration '. + 'to affect existing revisions. For instructions, see '. + '**[[ %s | Managing Caches ]]** in the documentation.', + $caches_href)) ->addExample("/config\.h$/\n#/autobuilt/#", pht('Valid Setting')), $this->newOption('differential.sticky-accept', 'bool', true) ->setBoolOptions(