Changeset 439 for cmtcvs


Ignore:
Timestamp:
Feb 7, 2008, 5:09:18 PM (16 years ago)
Author:
rybkin
Message:

See C.L. 7

Location:
cmtcvs/HEAD
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • cmtcvs/HEAD/ChangeLog

    r433 r439  
     12008-02-07    <rybkin@lal.in2p3.fr> 7
     2
     3        * src/cmtcvs.cxx: To retreive the tags, consider ChangeLog
     4        in the top directory first (as it is most likely changed when
     5        the module is tagged and, therefore, its revision will allow us
     6        to distinguish between the trunk and branches)
     7       
    182008-01-15    <vincent.garonne@cern.ch> 6
    29
  • cmtcvs/HEAD/src/cmtcvs.cxx

    r409 r439  
    175175    /*
    176176      #  First figure out which test file will be used to retreive the tags
     177      o consider ChangeLog in the top directory first
     178      (as it is most likely changed when the module is tagged and, therefore,
     179      its revision will allow us to distinguish between the trunk and branches)
    177180      #   o requirements file is considered first
    178181      #   o then any other file in the top directory
     
    180183    */
    181184
    182   StructureType result = in_project;
     185  StructureType result (no_structure);
     186
     187  cmt_string proj_file;
     188
     189  get_cvsroot (proj_file);
     190  proj_file += CmtSystem::file_separator ();
     191  proj_file += module;
     192  proj_file += CmtSystem::file_separator ();
     193  proj_file += "cmt";
     194  proj_file += CmtSystem::file_separator ();
     195  proj_file += "project.cmt,v";
     196
     197  if (CmtSystem::test_file (proj_file))
     198    {
     199      result = in_project;
     200    }
     201  else
     202    {
     203      result = in_package;
     204    }
    183205
    184206  cmt_string test_file;
    185 
    186207  bool found = false;
    187208
    188209  get_cvsroot (test_file);
    189 
    190210  test_file += CmtSystem::file_separator ();
    191211  test_file += module;
    192212  test_file += CmtSystem::file_separator ();
    193   test_file += "cmt";
    194   test_file += CmtSystem::file_separator ();
    195   test_file += "project.cmt,v";
     213  test_file += "ChangeLog,v";
    196214
    197215  found = CmtSystem::test_file (test_file);
     216
     217  if (!found && result == in_project)
     218    {
     219      test_file = proj_file;
     220      found = true;
     221    }
    198222
    199223  if (!found)
Note: See TracChangeset for help on using the changeset viewer.