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

svn_client_status5: ood_changed_rev is different for "http" and "file" protocols

From: Dmitry Pavlenko <pavlenko_at_tmatesoft.com>
Date: Tue, 17 Apr 2012 23:34:34 +0200

Hello all!

I have a question about internal SVN status API (trunk, r1302023).

I have a repository with 2 reivsions: in r1 a "file" is added, in r2 it is deleted.
I checkout revision 1 using
  * file protocol and
  * http protocol
as a working copy and run "svn_client_status5" on a file with the following callback:

svn_error_t* print_status(void *baton, const char *path, const svn_client_status_t *status,
apr_pool_t *pool) {
   printf("%s: revision %d\n", path, status->ood_changed_rev);
}

When I run it over file protocol, I see the following output

file: revision 2

but if I run over http, I see

file: revision -1

So the question is: if this behaviour is expected (I expected some protocol-independency)?

While some debugging I've discovered that for http case "delete_entry" of the status editor is
called with -1 revision (but with 2 for file protocol). As I understand it may be a restriction of
http protocol but maybe SVN should perform additional requests to get missing information.

I've attached the repository and minimal C program that reproduces the problem. It should be run
from within the working copy.

Received on 2012-04-17 23:36:05 CEST

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.