cvs: SVNROOT / run-conversion.php
| From: | Gwynne Raskind | Date: | Sat, 08 Nov 2008 00:55:57 +0000 |
| Subject: | cvs: SVNROOT / run-conversion.php | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-54030@lists.php.net to get a copy of this message | ||
gwynne Sat Nov 8 00:55:57 2008 UTC
Modified files:
/SVNROOT run-conversion.php
Log:
don't bother converting for non-empty repos, allows better resume-from-death support
http://cvs.php.net/viewvc.cgi/SVNROOT/run-conversion.php?r1=1.13&r2=1.14&diff_format=u
Index: SVNROOT/run-conversion.php
diff -u SVNROOT/run-conversion.php:1.13 SVNROOT/run-conversion.php:1.14
--- SVNROOT/run-conversion.php:1.13 Fri Nov 7 20:10:51 2008
+++ SVNROOT/run-conversion.php Sat Nov 8 00:55:57 2008
@@ -2,7 +2,7 @@
//
-----------------------------------------------------------------------------------------------------------------------------
// Constants
-$version = substr('$Revision: 1.13 $', strlen('$Revision: '), -2);
+$version = substr('$Revision: 1.14 $', strlen('$Revision: '), -2);
$passes = array(
'processcvs', // Process CVS modules
@@ -281,6 +281,10 @@
error("SVN repository at {$this->svnRepositoryPath} doesn't exist or
isn't writable.\n");
}
+ if (trim(system('svnlook youngest ' .
escapeshellarg($this->svnRepositoryPath))) != 0) {
+ return; // Repo isn't empty
+ }
+
v(1, "Running cvs2svn for '{$this->repositoryName}'...\n");
$converter = new CVS2SVNConverter($this->repositoryName);
$converter->setOutputPath($this->svnRepositoryPath);