Changeset 16771

Show
Ignore:
Timestamp:
06/28/07 22:00:58 (17 months ago)
Author:
diakopter
Message:

adding new diff line to svnbot... tentatively.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • examples/network/svnbot.pl

    r16655 r16771  
    77my $interval    = @*ARGS.shift // 300; 
    88my $repository  = @*ARGS.shift // "."; 
     9my $svndiffurl  = (@*ARGS[0] ~~ /http/) ?? @*ARGS.shift !! 0; 
    910my $show_branch = (@*ARGS[0] eq "true") ?? @*ARGS.shift !! 0; 
    1011my $sep_header  = (@*ARGS[0] eq "true") ?? @*ARGS.shift !! 0; 
     
    2829debug "        sep_header...    specifies whether a separate header line"; 
    2930debug "                         should be outputted (true|false)."; 
     31debug "        svndiffurl...    specifies the base url for svn diff"; 
     32debug "                         requests.  revision# is appended."; 
    3033 
    3134# Initialize $cur_svnrev. $cur_svnrev contains the last revision seen, and is 
     
    172175    my $branch; 
    173176    my $subst = "XXX-HACK-SVNBOT-SUBST-{rand}"; # XXX! 
     177    my $revnum; 
    174178 
    175179    for =$fh -> $_ { 
     
    207211       } 
    208212    } 
     213    $commits ~= "diff: $svndiffurl$cur_entry\n" if $svndiffurl; 
    209214 
    210215    return $commits;