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

Re: getting properties via perl bindings

From: Karl Hasselström <kha_at_treskal.com>
Date: 2006-02-16 09:36:26 CET

On 2006-02-15 13:47:08 -0800, Eric Gillespie wrote:

> Karl Hasselström <kha@treskal.com> writes:
>
> > But. I can find exactly one way to get file and directory
> > properties via ra, and that is svn_ra_get_file and svn_ra_get_dir.
>
> 0 tmp% cat foo.pl
> use SVN::Ra;
> my $ra = new SVN::Ra (url=>'http://svn.collab.net/repos/svn');
> my (undef, $properties) = get_file $ra ('trunk/dist.sh', -1, undef);
> printf("%30s: %s\n", $_, $properties->{$_}) for sort(keys(%$properties));
> 0 tmp% perl ./foo.pl
> svn:entry:committed-date: 2006-01-14T22:00:40.080724Z
> svn:entry:committed-rev: 18104
> svn:entry:last-author: danderson
> svn:entry:uuid: 65390229-12b7-0310-b90b-f21a5aa7ec8e
> svn:eol-style: native
> svn:executable: on
> svn:wc:ra_dav:version-url: /repos/svn/!svn/ver/18104/trunk/dist.sh

Ah, thanks! Mutable input parameters are converted to output
parameters. Is this documented somewhere?

-- 
Karl Hasselström, kha@treskal.com
      www.treskal.com/kalle
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Thu Feb 16 09:37:41 2006

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.