[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    KDE/kde-common/svn/hooks
From:       Dirk Mueller <mueller () kde ! org>
Date:       2006-07-31 22:37:58
Message-ID: 1154385478.367479.29005.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 568376 by mueller:

only check added lines


 M  +1 -2      post-commit.pl  


--- trunk/KDE/kde-common/svn/hooks/post-commit.pl #568375:568376
@@ -721,11 +721,10 @@
   my @stuff = @_;
   my $found = ""; 
   foreach my $current(@stuff) {
-    next if ($current =~ /^\s*\/\//);
+    next if ($current =~ /^[\s-]/);
     $current =~ s/\"[^\"]*\"//g;
     $current =~ s/\/\*.*\*\///g;
     $current =~ s,//.*,,g;
-    next if ($current =~ /^-/);
     $found .= "$1," if ($current =~ \
                /\b(KRun::runCommand|KShellProcess|setUseShell)\b\s*[\(\r\n]/ and \
                $found !~ /$1/);
     $found .= "$1," if ($current =~ \
/\b(system|popen|mktemp|mkstemp|tmpnam|gets|syslog|strptime)\b\s*[\(\r\n]/ and $found \
                !~ /$1/);
     $found .= "$1," if ($current =~ /(scanf)\b\s*[\(\r\n]/ and $found !~ /$1/);


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic