function hacked_cvs_checkout_release in Hacked! 6
1 call to hacked_cvs_checkout_release()
File
- ./
hacked.module, line 578 - The Hacked! module, shows which project have been changed since download.
Code
function hacked_cvs_checkout_release($type, $name, $version, $filename) {
if ($type == 'core') {
$cvs_root = ':pserver:anonymous:anonymous@cvs.drupal.org:/cvs/drupal';
$modules_folder = "drupal";
$destination_folder = "{$name}-{$version}";
}
else {
// Contrib then:
$cvs_root = ':pserver:anonymous:anonymous@cvs.drupal.org:/cvs/drupal-contrib';
$modules_folder = "contributions/{$type}s/{$name}";
$destination_folder = "{$name}";
}
$destination_dir = hacked_release_form_path_name($type, $name, $version);
$tag = '';
$file = new stdClass();
$file->filename = $filename;
_hacked_cvs_deploy_version_alter($tag, $file);
if (empty($tag)) {
$tag = 'HEAD';
}
return hacked_cvs_checkout($cvs_root, $modules_folder, $destination_dir, $destination_folder, $tag);
}