Re: Any workarounds for svnsync "file not found" error?

2011-09-06 Thread Grigory Petrov
ines Changed paths: M /repo_name/trunk/path/to/file.h A /repo_name/trunk/path/to/file.txt M /repo_name/trunk/path/to/file.cpp +++ Other comment On Tue, Sep 6, 2011 at 3:24 PM, Konstantin Kolinko wrote: > 2011/

Any workarounds for svnsync "file not found" error?

2011-09-06 Thread Grigory Petrov
Hello. I'm mirroring one of my repositories right now. Repository is hosted with subversion 1.6.x and my client is sliksvn 1.6.17. The "svnsync" command synchronize most of the repository but at some point it fails with: Transmitting file data ...svnsync: File not found: transaction '12893-qyy',

What is the most simple way to use svn_stream_t?

2011-03-02 Thread Grigory Petrov
Hello. I need to programmatically get content of a specified revision of versioned file. I think svn_client_cat2() will do a good job, but the first parameter, "svn_stream_t* out" puzzles me a bit. I have read about "streams" in corresponding header file (not a very long reading) and it seems to b

Re: Why svn_client_update3() always return success?

2011-02-19 Thread Grigory Petrov
When ./ is a working copy, 'svn up nonexistentpath' returns zero because, if that path had been added between BASE and HEAD, it would create that file in the wc. Outside a working copy it should signal an error. (currently outside of a working copy it generates a "Skip" notification) I have co

Why svn_client_update3() always return success?

2011-02-19 Thread Grigory Petrov
Hello. I'm learning a Subversion API right now and have following test code: http://pastebin.com/rVQM7TpJ The svn_client_ls() call correctly returns error code since i give a wrong repository URL. But next call to svn_client_update3() ALWAYS returns success (zero) regardless of arguments i supp

What is a "baton" from subversion sources?

2011-02-11 Thread Grigory Petrov
Hello. I'm learning subversion API right now and examining it's source code and examples. It's a lot of things in subversion source code that is called a "baton". For example, svn_cmdline_create_auth_baton() create "auth baton", and callbacks takes callback function pointer and, again, batons