Changeset 439
- Timestamp:
- Feb 7, 2008, 5:09:18 PM (17 years ago)
- Location:
- cmtcvs/HEAD
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
cmtcvs/HEAD/ChangeLog
r433 r439 1 2008-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 1 8 2008-01-15 <vincent.garonne@cern.ch> 6 2 9 -
cmtcvs/HEAD/src/cmtcvs.cxx
r409 r439 175 175 /* 176 176 # 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) 177 180 # o requirements file is considered first 178 181 # o then any other file in the top directory … … 180 183 */ 181 184 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 } 183 205 184 206 cmt_string test_file; 185 186 207 bool found = false; 187 208 188 209 get_cvsroot (test_file); 189 190 210 test_file += CmtSystem::file_separator (); 191 211 test_file += module; 192 212 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"; 196 214 197 215 found = CmtSystem::test_file (test_file); 216 217 if (!found && result == in_project) 218 { 219 test_file = proj_file; 220 found = true; 221 } 198 222 199 223 if (!found)
Note: See TracChangeset
for help on using the changeset viewer.