Created
October 5, 2011 23:30
-
-
Save soywiz/1266054 to your computer and use it in GitHub Desktop.
Obtain the max revision from a Subversion 1.7 repository
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
function getSubversion17MaxRevisionFromFolder($checkoutFolderPath) { | |
$db = new PDO('sqlite:' . realpath($checkoutFolderPath) . '/.svn/wc.db'); | |
foreach ($db->query('SELECT MAX(revision) FROM NODES;') as $row) return $row[0]; | |
return false; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment