/[Frey]/trunk/lib/Frey/SVK.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/SVK.pm

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

revision 535 by dpavlin, Wed Nov 26 16:17:17 2008 UTC revision 552 by dpavlin, Thu Nov 27 15:40:12 2008 UTC
# Line 18  sub modified { Line 18  sub modified {
18          my ($self) = @_;          my ($self) = @_;
19          my @modified;          my @modified;
20          my $svk = $self->svk('status -q', sub {          my $svk = $self->svk('status -q', sub {
21                  push @modified, $1 if /^M\s+(.+)/;                  push @modified, $1 if /^(M|A)\s+(.+)/;
22          });          });
23          return @modified;          return @modified;
24  }  }
# Line 47  sub as_markup { Line 47  sub as_markup {
47          my $status = `svk status -q`;          my $status = `svk status -q`;
48          my $diff   = `svk diff`;          my $diff   = `svk diff`;
49    
50            Frey::Web->meta->apply( $self ); # provide html_escape
51    
52          my $html          my $html
53                  = qq|<pre>$status</pre><hr><pre>|                  = qq|<pre>$status</pre><hr><pre>|
54  #               . $self->html_escape( $diff )                  . $self->html_escape( $diff )
                 . $diff  
55                  . qq|</pre>|                  . qq|</pre>|
56                  ;                  ;
57          warn "diff ",length($html)," bytes";          warn "diff ",length($html)," bytes";

Legend:
Removed from v.535  
changed lines
  Added in v.552

  ViewVC Help
Powered by ViewVC 1.1.26