now that everything from http://drupal.org/node/84706 is committed to DRUPAL-4-7--2 branch, and in the process, i added the cvs_local.inc file as cvs_local.example.inc (so it's disabled by default), i noticed that we currently assume cvs_get_version_from_tag() exists, even though it lives in cvs_local.inc which is supposed to be optional.
so, we should probably rename the version in cvs_local.inc to be cvs_local_get_version_from_tag() and add a version of cvs_get_version_from_tag() directly in cvs.module that conditionally checks if cvs_local.inc is being used. if so, we use it, and if not, we return some kind of dummy value (e.g. put the whole tag name into version_extra by default or something).
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | 91195_cvs.patch_2.txt | 2.74 KB | dww |
| #1 | 91195_cvs.patch.txt | 2.71 KB | dww |
Comments
Comment #1
dwwComment #2
drewish commentednot sure about:
where is $version defined? can you just assign properties to an undefined object like that? even if it's legal i think it'd be better to explicitly define
$version = new stdClass();other than that everything *looks* okay. i don't have cvs setup on this machine so i didn't apply it.
Comment #3
dwwYeah, it works, but it's probably generating warnings, and might not work on PHP5. ;) Good catch.
Comment #4
hunmonk commentedComment #5
dwwFixed typo in comment and committed to HEAD and DRUPAL-4-7--2.
Comment #6
(not verified) commented