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

API: Getting directory listings from copied directories by revision

From: Max Kanat-Alexander <mkanat_at_bugzilla.org>
Date: 2007-11-03 00:43:22 CET

        The svn client seems to be able to do something the API can't.

        Namely, given a path that was copied, and a revision that the
copy "didn't exist" in, the CLI can still give valid "ls" contents.

        I'm trying to get the contents of revision 87 of:

        http://code.alternation.net/svn/Syndication-ESF/tags/release-0.1/lib

        (I'm doing this because the svn_dirent_t for that directory
reports its most recent revision as 87.)

        It was copied to its current location in revision 88.

        This works:

        svn ls -r87 http://code.alternation.net/svn/Syndication-ESF/tags/release-0.1/lib

        The following Perl code does not work:

        use SVN::Ra;
        my $ra = SVN::Ra->new(url => 'http://code.alternation.net/svn');
        my @dir = $ra->get_dir('Syndication-ESF/tags/release-0.1/lib', 87);

        It throws the following error:

        HTTP Path Not Found: PROPFIND request failed on
'/svn/!svn/bc/87/Syndication-ESF/tags/release-0.1/lib':
'/svn/!svn/bc/87/Syndication-ESF/tags/release-0.1/lib' path not found

        So my question is either:

        * How do I tell the API to behave the same way as the
command-line client? I've tried putting an "@" specifier at the end of
the path to get_dir, but that doesn't work.

        or if that's impossible:

        * The API tells me that directory is revision 87, but then
tells me revision 87 of that directory doesn't exist. How do I get the
path that I *should* be querying instead, and is there any way to know,
with just the information from get_dir on the parent directory, that I
should be looking at some other path?

        If anybody's curious, this is for my Perl library called VCI,
described at http://vci.everythingsolved.com/.

        -Max

-- 
http://www.everythingsolved.com/
Competent, Friendly Bugzilla and Perl Services. Everything Else, too.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Sun Nov 4 00:41:50 2007

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.