/[Frey]/trunk/lib/Frey/SVN.pm
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Diff of /trunk/lib/Frey/SVN.pm

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 804 by dpavlin, Wed Dec 10 22:49:31 2008 UTC revision 805 by dpavlin, Wed Dec 10 23:03:04 2008 UTC
# Line 151  sub as_markup { Line 151  sub as_markup {
151          return $html;          return $html;
152  }  }
153    
154    sub codeswarm_as_markup {
155            my ($self) = @_;
156    
157            $self->content_type('text/xml');
158    
159            my $file_events = '';
160    
161            $self->iterator( sub {
162                    my $e = shift;
163                    
164                    my $rev = $e->{'revision'};
165                    my $date = $e->{'date'};
166                    my $author = $e->{'author'};
167    
168                    foreach my $p (@{$e->{'paths'}->{'path'}}) {
169                            my ($action,$path) = ($p->{'action'},$p->{'content'});
170                            $file_events .= qq|\t<event filename="$path" date="$date" author="$author" />\n|;
171                    }
172    
173            });
174    
175            return qq|<?xml version="1.0"?>
176            <!-- One commit per day for one month by a documenter and programmer. -->
177            <file_events>
178            $file_events
179            </file_events>
180            |;
181    
182    }
183    
184  1;  1;

Legend:
Removed from v.804  
changed lines
  Added in v.805

  ViewVC Help
Powered by ViewVC 1.1.26