You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@spamassassin.apache.org by jm...@apache.org on 2007/09/02 18:46:05 UTC

svn commit: r572025 - /spamassassin/trunk/masses/rule-qa/automc/gen_info_xml

Author: jm
Date: Sun Sep  2 09:46:04 2007
New Revision: 572025

URL: http://svn.apache.org/viewvc?rev=572025&view=rev
Log:
hooray, svn on the zone now supports --limit

Modified:
    spamassassin/trunk/masses/rule-qa/automc/gen_info_xml

Modified: spamassassin/trunk/masses/rule-qa/automc/gen_info_xml
URL: http://svn.apache.org/viewvc/spamassassin/trunk/masses/rule-qa/automc/gen_info_xml?rev=572025&r1=572024&r2=572025&view=diff
==============================================================================
--- spamassassin/trunk/masses/rule-qa/automc/gen_info_xml (original)
+++ spamassassin/trunk/masses/rule-qa/automc/gen_info_xml Sun Sep  2 09:46:04 2007
@@ -7,8 +7,7 @@
 # we won't provide who-checked-in and commit-message details for changes
 # older than this.  Note, this is not in rev number terms; it's an
 # absolute count of revisions.
-# update: alternatively, since the zone's SVN is too old (!), use a date.
-# my $svn_log_limit = 500;
+my $svn_log_limit = 500;
 
 my $full_rebuild = 0;
 if ($ARGV[0] && $ARGV[0] =~ /^-f/) {
@@ -171,10 +170,7 @@
 sub get_svn_log {
   print "getting svn log... (".time.")\n";
 
-  my $limitdate = strftime ("%Y-%m-%d", localtime time-(24*60*60*30*12));
-
-  if (open (IN, "svn log -r 'HEAD:{$limitdate}' --xml $svn_checkins_root |"))
-  # if (open (IN, "svn log --limit $svn_log_limit --xml $svn_checkins_root |"))
+  if (open (IN, "svn log --limit $svn_log_limit --xml $svn_checkins_root |"))
   {
     eval {
       my $xml = join('', <IN>);