Index: trunk/extensions/CodeReview/backend/Subversion.php |
— | — | @@ -64,6 +64,8 @@ |
65 | 65 | class SubversionPecl extends SubversionAdaptor { |
66 | 66 | |
67 | 67 | /** |
| 68 | + * Just return true for now. svn_info() is too slow to be useful... |
| 69 | + * |
68 | 70 | * Using undocumented svn_info function. Looking at the source, this has |
69 | 71 | * existed since version 0.3 of the Pecl extension (per release notes). |
70 | 72 | * Nobody ever bothered filling in the documentation on php.net though. |
— | — | @@ -71,10 +73,10 @@ |
72 | 74 | * It throws a warning if the repository does not exist. |
73 | 75 | */ |
74 | 76 | function canConnect() { |
75 | | - wfSuppressWarnings(); |
76 | | - $result = svn_info( $this->mRepo->getPath() ); |
77 | | - wfRestoreWarnings(); |
78 | | - return (bool)$result; |
| 77 | + //wfSuppressWarnings(); |
| 78 | + //$result = svn_info( $this->mRepo ); |
| 79 | + //wfRestoreWarnings(); |
| 80 | + return true; |
79 | 81 | } |
80 | 82 | |
81 | 83 | function getFile( $path, $rev = null ) { |