Index: trunk/extensions/CodeReview/backend/Subversion.php |
— | — | @@ -122,7 +122,17 @@ |
123 | 123 | * Using the thingy-bobber |
124 | 124 | */ |
125 | 125 | class SubversionShell extends SubversionAdaptor { |
| 126 | + const MIN_MEMORY = 204800; |
126 | 127 | |
| 128 | + function __construct( $repo ) { |
| 129 | + parent::__construct( $repo ); |
| 130 | + global $wgMaxShellMemory; |
| 131 | + if( $wgMaxShellMemory < SubversionShell::MIN_MEMORY ) { |
| 132 | + $wgMaxShellMemory = 204800; |
| 133 | + wfDebug( __METHOD__ . " raised wgMaxShellMemory to $wgMaxShellMemory\n" ); |
| 134 | + } |
| 135 | + } |
| 136 | + |
127 | 137 | function canConnect() { |
128 | 138 | $command = sprintf( |
129 | 139 | "svn info %s %s", |