--- branches/no-pager/lib/Frey/SVK.pm 2008/12/07 01:16:44 744
+++ branches/no-pager/lib/Frey/SVK.pm 2008/12/07 01:29:58 745
@@ -36,11 +36,13 @@
close($svk) or die "can't close svk $exec: $@";
}
+our $svk_status_path = '^(\w+[\+\s]+)(.+)';
+
sub modified {
my ($self) = @_;
my @modified;
my $svk = $self->svk('status -q', sub {
- push @modified, $1 if /^\w+\s+(.+)/;
+ push @modified, $2 if m{$svk_status_path};
});
return @modified;
}
@@ -67,7 +69,7 @@
sub commit_as_markup {
my ($self) = @_;
my $status = `svk status -q`;
- $status =~ s{^(\w+[\+\s]+)(\S+)$}{$1 . $self->checkbox('path',$2) . qq|$2|}egm;
+ $status =~ s{$svk_status_path}{$1 . $self->checkbox('path',$2) . qq|$2|}egm;
if ( $status ) {
$self->add_css(qq|
pre.l a { text-decoration: none; }