I would like to see the CVS tree field present in the project editing form to be automatically set when a project is first created; that would not preclude the possibility for the maintainer to unset the value set by Drupal.
I know there are projects that don't have files in the CVS repository, but this happens only for Drupal.org related projects. I also read in an issue opened against a project that projects listed at Drupal.org must be hosted in cvs.drupal.org; if this is the case, then the link to the CVS tree is known when the project is created.
| Comment | File | Size | Author |
|---|---|---|---|
| #20 | 435528-19.repo-link-default.D6-1.patch | 1.11 KB | dww |
| #18 | drupalorg.repo-link-default.18.patch | 1.17 KB | sun |
| #9 | project.notice.patch | 890 bytes | sun |
| #9 | drupalorg.repo-link-default.9.patch | 2.56 KB | sun |
| #8 | drupalorg_0999001.patch | 1.25 KB | avpaderno |
Comments
Comment #1
avpadernoIn that is not possible, then the description given for the form field should remember which is the CVS tree URL for a project.
Comment #2
avpadernoDoes anybody have a though, about this feature request?
Comment #3
chx commentedThis belongs to drupalorg module. Any volunteers coding this?
Comment #4
avpadernoIf it is plain Drupal code, I could do it. I am not sure if applying to become co-maintainer of the module for just this change could be worth (even though I can help changing other code too).
Comment #5
avpadernoI created a patch against DRUPAL-6--1 for this feature.
Comment #6
avpadernoI am sorry; the previous patch is wrong. Please review this patch.
Comment #7
avpadernoLet me see if I can get it work at the third time. The previous patch used the same path for all the project types. This patch fixes that.
Comment #8
avpadernoThis the patch made against HEAD. I am not sure which version is currently used on Drupal.org.
Comment #9
sunPretty please, yes. This is badly needed.
We cannot alter the node edit form, because we don't know the repository at that time yet.
Attached patch implements this simply as default link, in case project.module did not set one already.
Apparently, development for drupal.org seems to happen without E^ALL being enabled. Attached patches are fixing a couple of notices (so I was able to work on this patch at all).
Comment #10
sunComment #11
killes@www.drop.org commentedI am a bit confused: for which branch is this patch?
THe form_alter part seems to be altready applied.
Comment #12
sundrupalorg-HEAD, back in March, at least. Actual change:
Comment #13
avpadernoShould not the code verify if the path contained in
$node->cvs['directory']really starts with a slash?Comment #14
sunAt the time of writing that patch, leading and trailing slashes in $node->cvs['directory'] were enforced via form validation on the project node form.
Comment #15
avpadernoSlashes are not enforced, but silently added; the result is, anyway, the same.
Comment #16
sunSo what's up with this issue? Can we do this?
The lines in #12 resp. #13 are all that's required.
Comment #17
sunCan someone having actual privileges to change anything explain what's further needed to get this done?
Each comment here is triggered by yet another experience struggling with non-existing CVS repo links.
Comment #18
sunRe-rolled against HEAD.
Comment #19
dwwThis should be fixed in cvs.module, so that when we kill CVS and move to Git, we don't have to remember to take this code back out of drupalorg.module. Let's just fix this at #156118: Automatically generate the value of 'Link to webcvs/viewcvs' field for a project. Thanks!
Comment #20
dwwUpon more consideration, #156118 is a lot of work for cvs.module to get right, especially given that that module is on the way to the graveyard. So yeah, a quick patch here is fine for now. Here's a port to DRUPAL-6--1, which is what's live on d.o.
Comment #21
dwwCommitted to both branches, merged into bzr, and deployed on d.o. Opened #913982: Rip out custom hack for links to drupalcode.org/viewvc so we don't forget to rip this code out once we have Git and #156118: Automatically generate the value of 'Link to webcvs/viewcvs' field for a project is fixed in versioncontrol_project.
Working fine now, e.g. at http://drupal.org/project/signup (where I removed the hard-coded link).
Comment #22
dwwSee also #913996: Wipe out all the "CVS Tree" links on d.o projects so they're set correctly automatically
Comment #23
sunLovely! Thank you, Derek! :)