Ramkumar Ramachandra wrote: > Hi, > > We're working on a project to replay revisions using the replay API > and dump a deltified dumpfile to stdout on-the-fly without using a > filesystem backing. Althought the md5sum seems to be available through > svn_txdelta_apply, the length of the delta doesn't seem to be. Without > this length, we cannot generate a valid dumpfile (since the parser > needs the content length information) - the current workaround is to > load the whole stream into memory and measure its length, but this is > highly inefficient. Is there any other way?
IIRC, Subversion is calculating that delta on the fly, so it can't exactly hand you up-front the length thereof. Could you use a temporary file on disk (and a stat() call for the filesize) instead of in-memory storage as your go-between? -- C. Michael Pilato <cmpil...@collab.net> CollabNet <> www.collab.net <> Distributed Development On Demand