/[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 505 by dpavlin, Mon Nov 24 22:21:02 2008 UTC revision 535 by dpavlin, Wed Nov 26 16:17:17 2008 UTC
# Line 1  Line 1 
1  package Frey::SVK;  package Frey::SVK;
2  use Moose;  use Moose;
3    
4  with 'Frey::Escape';  extends 'Frey';
5    with 'Frey::Web';
6    
7  sub svk {  sub svk {
8          my ( $self, $exec, $coderef ) = @_;          my ( $self, $exec, $coderef ) = @_;
# Line 28  sub info { Line 29  sub info {
29          return $info if $info;          return $info if $info;
30          my $svk = $self->svk('info', sub {          my $svk = $self->svk('info', sub {
31                  my ( $label, $value ) = split(/:\s+/, $_, 2);                  my ( $label, $value ) = split(/:\s+/, $_, 2);
32                  $info->{$label} = $value;                  $info->{$label} = $value if $label;
33          });          });
34          return $info;          return $info;
35  }  }
# Line 48  sub as_markup { Line 49  sub as_markup {
49    
50          my $html          my $html
51                  = qq|<pre>$status</pre><hr><pre>|                  = qq|<pre>$status</pre><hr><pre>|
52                  . $self->html_escape( $diff )  #               . $self->html_escape( $diff )
53                    . $diff
54                  . qq|</pre>|                  . qq|</pre>|
55                  ;                  ;
56          warn "diff ",length($html)," bytes";          warn "diff ",length($html)," bytes";

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

  ViewVC Help
Powered by ViewVC 1.1.26