| 1 |
<?php |
<?php |
| 2 |
// $Id: cvs_deploy.module,v 1.23 2009/04/30 07:27:48 dww Exp $ |
// $Id: cvs_deploy.module,v 1.24 2009/06/13 08:48:03 dww Exp $ |
| 3 |
|
|
| 4 |
/** |
/** |
| 5 |
* @file |
* @file |
| 52 |
_cvs_deploy_version_alter($info['version'], $file); |
_cvs_deploy_version_alter($info['version'], $file); |
| 53 |
|
|
| 54 |
// Find the timestamp for the most recently modified CVS/Entries file. |
// Find the timestamp for the most recently modified CVS/Entries file. |
| 55 |
$mtime = _cvs_deploy_find_latest_update(dirname($file->filename), 0); |
$mtime = _cvs_deploy_find_latest_update(dirname($file->uri), 0); |
| 56 |
|
|
| 57 |
// Only fill this in if the .info file does not define a 'datestamp'. |
// Only fill this in if the .info file does not define a 'datestamp'. |
| 58 |
if (empty($info['datestamp'])) { |
if (empty($info['datestamp'])) { |
| 78 |
if (empty($version)) { |
if (empty($version)) { |
| 79 |
// The .info file contains no version data. Find the version based |
// The .info file contains no version data. Find the version based |
| 80 |
// on the sticky tag in the local workspace (the CVS/Tag file). |
// on the sticky tag in the local workspace (the CVS/Tag file). |
| 81 |
$cvs_dir = dirname($file->filename) .'/CVS'; |
$cvs_dir = dirname($file->uri) .'/CVS'; |
| 82 |
if (is_dir($cvs_dir)) { |
if (is_dir($cvs_dir)) { |
| 83 |
$tag = ''; // If there's no Tag file, there's no tag, a.k.a. HEAD. |
$tag = ''; // If there's no Tag file, there's no tag, a.k.a. HEAD. |
| 84 |
if (file_exists($cvs_dir .'/Tag')) { |
if (file_exists($cvs_dir .'/Tag')) { |
| 138 |
$name = $file->name; |
$name = $file->name; |
| 139 |
if (empty($projects[$name])) { |
if (empty($projects[$name])) { |
| 140 |
// TODO: cache this in {cache}, too? |
// TODO: cache this in {cache}, too? |
| 141 |
$cvs_dir = dirname($file->filepath) .'/CVS'; |
$cvs_dir = dirname($file->uri) .'/CVS'; |
| 142 |
if (is_dir($cvs_dir)) { |
if (is_dir($cvs_dir)) { |
| 143 |
$repository = ''; |
$repository = ''; |
| 144 |
if (file_exists($cvs_dir .'/Repository')) { |
if (file_exists($cvs_dir .'/Repository')) { |