/[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 695 by dpavlin, Tue Dec 2 22:16:44 2008 UTC revision 699 by dpavlin, Tue Dec 2 22:26:16 2008 UTC
# Line 125  sub diff_as_markup { Line 125  sub diff_as_markup {
125          };          };
126          $diff =~ s{^(===\s+)(\S+)$}{$1 . form($2,'revert') . qq| <a name="$2" target="editor" href="/editor+$2+1">$2</a> | . form($2,'postpone') }gem;          $diff =~ s{^(===\s+)(\S+)$}{$1 . form($2,'revert') . qq| <a name="$2" target="editor" href="/editor+$2+1">$2</a> | . form($2,'postpone') }gem;
127    
128          $diff = qq|<pre>$diff</pre>|;          $diff = qq|<pre>$diff</pre>| if $diff;
129          warn "diff_as_markup ",length($diff)," bytes";          warn "diff_as_markup ",length($diff)," bytes";
130          return $diff;          return $diff;
131  }  }
# Line 177  sub as_markup { Line 177  sub as_markup {
177    
178          $self->title( 'svk' . ( $self->action ? ' - ' . $self->action : '' ) ); # XXX without this we get wrong icon and title          $self->title( 'svk' . ( $self->action ? ' - ' . $self->action : '' ) ); # XXX without this we get wrong icon and title
179    
180          $html .= $self->commit_as_markup . $self->diff_as_markup;          $html .= $self->commit_as_markup . $self->diff_as_markup ||
181                    qq|No changes in tracked files|;
182    
183          warn "as_markup ",length($html)," bytes";          warn "as_markup ",length($html)," bytes";
184    

Legend:
Removed from v.695  
changed lines
  Added in v.699

  ViewVC Help
Powered by ViewVC 1.1.26