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.

Attachment: status-problem.tar.gz
Description: application/compressed-tar

Reply via email to