On 4/30/10 4:15 AM, Ravi Roy wrote:
Not really sure. making a file *svnlook cat* will definitely slow down operations (specially for big files). But anyway file has to be transferred to server before transaction size could be computed. So until commit is taking place, it would not be part of repo. Does somebody knows an optimum way how this could be achieved without causing performance bottlenecks?
If you use the SWIG bindings and the svn_fs API directly, then you can use svn_fs_file_length() to get the length of the file without catting it.
Here's the API that the bindings are build from: http://svn.apache.org/repos/asf/subversion/trunk/subversion/include/svn_fs.h Regards, Blair -- Blair Zajac, Ph.D. CTO, OrcaWare Technologies <bl...@orcaware.com> Subversion training, consulting and support http://www.orcaware.com/svn/