[Fusionforge-general] svn commit list support

Donald Porter porterde at cs.utexas.edu
Sun Mar 28 15:12:04 CEST 2010


Thanks. Is this plugin packaged for Ubuntu?  I didn't see it in the  
list of available plugins after a full fusionforge install.

Thanks,
Don

On Mar 28, 2010, at 4:00 AM, AlJeux <aljeux at free.fr> wrote:

> Hi,
>
> Sending a mail to the commit mailing list is already performed by the
> svncommitemail plugin. You might just need to install & activate it.
>
> Best regards,
> Alain.
>
> Don Porter a écrit :
>> Hi,
>>
>> I noticed that the scmsvn plugin does not configure the repository to
>> send commit emails to the {project}-commits list.
>>
>> I like this feature, so I added some code locally to
>> /usr/share/gforge/plugins/scmsvn/common/SVNPlugin.class.php to  
>> support
>> this.
>>
>> I figured this might be useful to others, so there's a diff below if
>> you'd like to add the feature to fusionforge.
>>
>> Do let me know if you need anything else from me in order to accept  
>> the
>> patch.
>>
>> Thanks,
>> Don
>>
>> --- /usr/share/gforge/plugins/scmsvn/common/SVNPlugin.class.php.bak
>> 2010-03-27 13:22:41.000000000 -0500
>> +++ /usr/share/gforge/plugins/scmsvn/common/SVNPlugin.class.php
>> 2010-03-27 13:42:49.000000000 -0500
>> @@ -190,6 +190,8 @@
>>    }
>>
>>    function createOrUpdateRepo ($params) {
>> +        global $sys_lists_host;
>> +
>>        $project = $this->checkParams ($params) ;
>>        if (!$project) {
>>            return false ;
>> @@ -206,6 +208,10 @@
>>            system ("svnadmin create $repo") ;
>>            system ("svn mkdir -m'Init' file:///$repo/trunk
>> file:///$repo/tags file:///$repo/branches") ;
>>            system ("find $repo -type d | xargs chmod g+s") ;
>> +            // Send email to the commit list
>> +            $name = $project->getUnixName();
>> +            system ("sed
>> 's/commit-watchers\@example.org/${name}-commits\@$sys_lists_host/'
>> $repo/hooks/post-commit.tmpl > $repo/hooks/post-commit") ;
>> +            system ("chmod +x $repo/hooks/post-commit") ;
>>        }
>>
>>        if ($this->use_ssh) {
>>
>>
>> _______________________________________________
>> Fusionforge-general mailing list
>> Fusionforge-general at lists.fusionforge.org
>> http://lists.fusionforge.org/cgi-bin/mailman/listinfo/fusionforge-general
>>
>
>
> _______________________________________________
> Fusionforge-general mailing list
> Fusionforge-general at lists.fusionforge.org
> http://lists.fusionforge.org/cgi-bin/mailman/listinfo/fusionforge-general




More information about the Fusionforge-general mailing list