/[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 619 by dpavlin, Sat Nov 29 15:58:23 2008 UTC revision 620 by dpavlin, Sat Nov 29 16:17:18 2008 UTC
# Line 19  has path => ( Line 19  has path => (
19          isa => 'Str',          isa => 'Str',
20  );  );
21    
22  has message => (  has commit_message => (
23          documentation => 'commit message',          documentation => 'commit message',
24          is => 'rw',          is => 'rw',
25          isa => 'Str',          isa => 'Str',
# Line 84  sub status_as_markup { Line 84  sub status_as_markup {
84                  $status = qq|                  $status = qq|
85                          <div class="commit">                          <div class="commit">
86                                  <form>                                  <form>
87                                  <textarea name="message" cols=40 rows=4></textarea>                                  <textarea name="commit_message" cols=40 rows=4></textarea>
88                                  <br><input type="submit" name="action" value="commit">                                  <br><input type="submit" name="action" value="commit">
89                                  </form>                                  </form>
90                          </div>                          </div>
# Line 125  sub as_markup { Line 125  sub as_markup {
125          if ( $self->action ) {          if ( $self->action ) {
126                  my $cmd = 'svk ' . $self->action . ' ' . $self->path;                  my $cmd = 'svk ' . $self->action . ' ' . $self->path;
127                  if ( $self->action eq 'commit' ) {                  if ( $self->action eq 'commit' ) {
128                          confess "need message" unless $self->message;                          confess "need commit message" unless $self->commit_message;
129                          my $msg = $self->message;                          my $msg = $self->commit_message;
130                          $msg =~ s{"}{\\"}gs;                          $msg =~ s{"}{\\"}gs;
131                          $cmd .= qq{ -m "$msg"};                          $cmd .= qq{ -m "$msg"};
132                  } else {                  } else {

Legend:
Removed from v.619  
changed lines
  Added in v.620

  ViewVC Help
Powered by ViewVC 1.1.26