Re: SVN::Client Problems with $ctx->commit()
From: Simon Lascelles <lists_at_lascelles.org.uk>
Date: 2004-04-21 15:20:44 CEST
I've had no responses to the mail (below) posted a couple of days
-- Regards, Simon. -- WhoAmI : Simon Lascelles, Eurotherm Email : simon(dot)lascelles(at)eurotherm(dot)co(dot)uk Disclaimer : all opinions expressed are my own Simon Lascelles wrote: > I'm using the Perl module SVN::Client to query and publish to a > subversion repository. I've successfully managed to cat", "log", "ls", > "add" and "update", but I'm having problems performing a commit. The > commit succeeds, but I can't read the returned data. > > The commit call is as follows: > $commits = $ctx->commit($repo,0); > > The documentation says that this should return a > svn_client_commit_info_t object, which should contain revision, date and > author details. > > Sadly if I try to treat the returned value as an array, as follows: > foreach $key (@$commits) { > print $key; > } > The system errors: > "Not an array reference..." > > If I try to treat the returned value as a hash, as follows: > while(($property, $value) = each(%$commits)) { > print $property, "\t", $value, "\n"; > } > The system returns: > "Not a HASH reference..." > > For all the other calls I've tried, treating the returned values as > above has worked. > > Has anyone had any success in "parsing" the return from this call? > --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org For additional commands, e-mail: users-help@subversion.tigris.orgReceived on Wed Apr 21 15:22:35 2004 |
This is an archived mail posted to the Subversion Users mailing list.
This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.