/[drupal]/contributions/modules/cvs_deploy/cvs_deploy.module
ViewVC logotype

Diff of /contributions/modules/cvs_deploy/cvs_deploy.module

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph | View Patch Patch

revision 1.24, Sat Jun 13 08:48:03 2009 UTC revision 1.25, Fri Aug 21 21:04:14 2009 UTC
# Line 1  Line 1 
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
# Line 52  function cvs_deploy_system_info_alter(&$ Line 52  function cvs_deploy_system_info_alter(&$
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'])) {
# Line 78  function _cvs_deploy_version_alter(&$ver Line 78  function _cvs_deploy_version_alter(&$ver
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')) {
# Line 138  function cvs_deploy_get_project_name($fi Line 138  function cvs_deploy_get_project_name($fi
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')) {

Legend:
Removed from v.1.24  
changed lines
  Added in v.1.25

  ViewVC Help
Powered by ViewVC 1.1.2