Thanks for reply I am Trying to create a SVN API. In which when i commit a file it will call back the log_msg. i am trying to write the log_msg function which need to take massage from user and kept in a tmp file and commit using that message.
use SVN::Client; use IO:File; use vars qw($fh $filename); my $template = 'filexxxx'; my $target = '/home/XXX/bla/bla'; my $ctx-> new SVN::Client(); $ctx->log_msg(\&log_msg); print " enter path to commit"; my $path =<>; chomp($path); $ctx->commit($path,0); sub log_msg{ my $log_msg=shift; my $messgpath=shift; my $citem = shift; my $pool = shift; $logmsg =&message(); $citem ={ $citem->path($path), $citem->revision('HEAD') } sub message { ($fh,$filename)=temfile($template, DIR => $target or die "error creating $filename :$!"; $fh =new IO::File "+>> $filename " or die " could not open a file :$!" +; if (defined $fh){ my $line =<STDIN>; print $fh $line; } $logmsg = ` cat $filename`; close($fh) return $logmsg; $messgpath ="$pathh/$filename"; } }
In reply to Re^2: SVN API log_msg help
by naresh777
in thread Reaped: SVN API log_msg help
by NodeReaper
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |