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

svnlook propget and tree in SWIG (Perl)

From: Prystash,John <prystasj_at_oclc.org>
Date: 2007-08-30 14:35:09 CEST

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

        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.


John Prystash x6469
Received on Thu Aug 30 14:32:22 2007

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