/[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 766 by dpavlin, Sat Dec 6 14:35:15 2008 UTC revision 767 by dpavlin, Tue Dec 9 20:31:29 2008 UTC
# Line 36  sub svk { Line 36  sub svk {
36          close($svk) or die "can't close svk $exec: $@";          close($svk) or die "can't close svk $exec: $@";
37  }  }
38    
39    our $svk_status_path = '^(\w+[\+\s]+)(.+)';
40    
41  sub modified {  sub modified {
42          my ($self) = @_;          my ($self) = @_;
43          my @modified;          my @modified;
44          my $svk = $self->svk('status -q', sub {          my $svk = $self->svk('status -q', sub {
45                  push @modified, $1 if /^\w+\s+(.+)/;                  push @modified, $2 if m{$svk_status_path};
46          });          });
47          return @modified;          return @modified;
48  }  }
# Line 67  sub as_data { Line 69  sub as_data {
69  sub commit_as_markup {  sub commit_as_markup {
70          my ($self) = @_;          my ($self) = @_;
71          my $status = `svk status -q`;          my $status = `svk status -q`;
72          $status =~ s{^(\w+[\+\s]+)(\S+)$}{$1 . $self->checkbox('path',$2) . qq|<a href="#$2">$2</a>|}egm;          $status =~ s{$svk_status_path}{$1 . $self->checkbox('path',$2) . qq|<a href="#$2">$2</a>|}egm;
73          if ( $status ) {          if ( $status ) {
74                  $self->add_css(qq|                  $self->add_css(qq|
75                          pre.l a { text-decoration: none; }                          pre.l a { text-decoration: none; }

Legend:
Removed from v.766  
changed lines
  Added in v.767

  ViewVC Help
Powered by ViewVC 1.1.26