1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-09-20 01:08:50 +02:00

Add some additional patterns to the "filter Mercurial --debug output" list

Summary:
Modern Mercurial may emit some more patterns under "--debug".

This whole list is gross and can likely now be eliminated by increasing the minimum required Mercurial version (as `arc` has), but just paper over it for now.

Test Plan:
Locally, saw some views return to functional behavior that weren't previously working on a modern version of Mercurial.

The reproduction case is likely something in the vein of "repository is not writable by webserver, look at history view".

Differential Revision: https://secure.phabricator.com/D21398
This commit is contained in:
epriestley 2020-07-08 13:25:46 -07:00
parent 56838c0e3d
commit 73c4240415

View file

@ -68,10 +68,15 @@ final class DiffusionMercurialCommandEngine
// http://selenic.com/pipermail/mercurial-devel/2011-February/028541.html // http://selenic.com/pipermail/mercurial-devel/2011-February/028541.html
// //
// After Jan 2015, it may also fail to write to a revision branch cache. // After Jan 2015, it may also fail to write to a revision branch cache.
//
// Separately, it may fail to write to a different branch cache, and may
// encounter issues reading the branch cache.
$ignore = array( $ignore = array(
'ignoring untrusted configuration option', 'ignoring untrusted configuration option',
"couldn't write revision branch cache:", "couldn't write revision branch cache:",
"couldn't write branch cache:",
'invalid branchheads cache',
); );
foreach ($ignore as $key => $pattern) { foreach ($ignore as $key => $pattern) {