Piwigo.org

You are not logged in. (Register / Login)

Announcement

Post a reply

Write your message and submit

Click in the dark area of the image to send your post.

Go back

Topic review (newest first)

plg
2009-06-25 20:01:05

VDigital wrote:

(Extensions are not following these hooks, I expect. ;-) )

The algorithm is:

Code:

@lines = `/usr/bin/svnlook dirs-changed $opt{repos_path} -r$opt{revision}`;
chomp(@lines);

my %locations = ();

foreach my $directory (@lines) {
    my @tree = split '/', $directory;

    if (defined $tree[0]) {
        if ($tree[0] eq 'trunk') {
            $locations{'trunk'}++;
        }

        if ($tree[0] eq 'branches') {
            if (defined $tree[1]) {
                $locations{'branch '.$tree[1]}++;
            }
        }

        if ($tree[0] eq 'extensions') {
            if (defined $tree[1]) {
                $locations{'extension '.$tree[1]}++;
            }
        }
    }
}

my $message = sprintf(
    'svn:%u by %s on %s

-----[Subversion commit log]----------------------------------------------------
%s',
    $opt{revision},
    $revision{username},
    join(', ', sort keys %locations),
    $revision{message}
);

So, if the commit is inside an extension, it will generate the message "svn : 12345 by tiico on extension piclens"

Eric
2009-06-25 12:47:10

Excellent ! Thank you.

ddtddt
2009-06-25 10:54:22

http://illiweb.com/fa/i/smiles/icon_thumright.png

VDigital
2009-06-25 10:47:01

Great feature for developers. Thxs

Users will see features and bugs resolution in real time.




(Extensions are not following these hooks, I expect. ;-) )

nicolas
2009-06-25 10:27:17

Very nice ! :-)

plg
2009-06-25 01:11:18

Hello Piwigo development team,

I've added some SVN hooks, Perl scripts and Bugtracker configuration to produce automatic notes in the bugtracker based on Subversion commit log.

When you commit into Subversion, you write a message. This message is analyzed. If a string like "feature 1234" or "bug 1234" is found, then it will create a note in the issue 1234 of the bugtracker.

Look an example in [Bugtracker] feature 1033.

Bye

Board footer

Powered by FluxBB

About this website · Donate · Contact Piwigo project © 2002-2013