[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

SVN::Client Problems with $ctx->commit()

From: Simon Lascelles <lists_at_lascelles.org.uk>
Date: 2004-04-19 15:45:31 CEST

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?

-- 
Regards,
Simon.
--
WhoAmI     : Simon Lascelles, Eurotherm
Email      : simon(dot)lascelles(at)eurotherm(dot)co(dot)uk
Disclaimer : all opinions expressed are my own
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Mon Apr 19 15:46:13 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.