Skip to content

Commit

Permalink
Skip the sandbox super-project, and include the nid in the dump output.
Browse files Browse the repository at this point in the history
  • Loading branch information
sdboyer committed Feb 17, 2011
1 parent c03a862 commit 10e061f
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
12 changes: 11 additions & 1 deletion dump-project-info.drush.php
Expand Up @@ -4,5 +4,15 @@

$fileobj = new SplFileObject(dirname(__FILE__) . '/project-migrate-info', 'w');
while ($row = db_fetch_object($result)) {
$fileobj->fwrite(sprintf('%s,%s,%d' . PHP_EOL, $row->directory, $row->uri, $row->strip_trans));
$function = '_tggm_exception_' . $row->uri;
if (function_exists($function) && !$function($row)) {
// Skip this item if the exception function exists and returns FALSE.
continue;
}
$fileobj->fwrite(sprintf('%s,%s,%d,%d' . PHP_EOL, $row->directory, $row->uri, $row->strip_trans, $row->nid));
}

function _tggm_exception_sandbox($row) {
// The 'sandbox' catchall project would cause us to import ALL sandboxes. No freakin way.
return FALSE;
}
2 changes: 1 addition & 1 deletion run-full-import.php
Expand Up @@ -56,7 +56,7 @@

if (empty($projectdata[0]) || !is_cvs_dir($srcrepo . '/contributions' . $projectdata[0])) {
git_log('No CVS source information for project; will spawn an empty repo for it later.', 'INFO', $projectdata[1]);
$empties->fwrite($projectdata[1] . PHP_EOL);
$empties->fwrite(sprintf('%s,%d' . PHP_EOL, $projectdata[1], $projectdata[3]));
$emptylist[] = $n;
continue;
}
Expand Down

0 comments on commit 10e061f

Please sign in to comment.