You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@subversion.apache.org by "Prystash,John" <pr...@oclc.org> on 2007/08/30 12:35:09 UTC

svnlook propget and tree in SWIG (Perl)

Hi All, I was wondering if anyone knew what might be a equivalent for
calling svnlook propget and/or svnlook tree on an open transaction with
the Perl SWIG bindings.

My goal is to check the value of svn:externals recursively if a changed
path matches certain criteria.

I am able to get the list of changed paths for the transaction

	my $changed_paths_ref = $txn_root->paths_changed();
	my @changed_paths     = keys %{$changed_paths_ref};

And the properties for that path in particular:

	# get the property data
	my $property_ref = $txn_root->node_proplist($changed_path);

And I would do something along the lines of these svnlook commands:

To get the paths underneath $changed_path, and the property values
underneath

	svnlook tree $changed_path -t $txn_name
            ...
	svnlook propget $repo svn:externals
$some_other_path_below_changed_path  -t $txn_name

Of course without resorting to calling out with line commands.

Thanks!

__________________
John Prystash x6469