in reply to Re: SVN API log_msg help
in thread Reaped: SVN API log_msg help
Thanks for reply I am new to perl please help me out in this. 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. please find the code below when i run this code its giving me an error " unable to find the object svn_client_commit_item3"
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"; } }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: SVN API log_msg help
by pemungkah (Priest) on Dec 05, 2011 at 22:23 UTC | |
by naresh777 (Initiate) on Dec 14, 2011 at 06:00 UTC | |
by pemungkah (Priest) on Dec 23, 2011 at 20:09 UTC |