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

svn_client_diff4 and valid relative path throws error even though it shouldn't

From: Stefan Küng <tortoisesvn_at_gmail.com>
Date: 2007-11-23 20:54:23 CET


Just updated to r27993 of the svn trunk. The new param relative_to_dir
in svn_client_diff4() is nice, but it doesn't work in some situations:

a diff between a working copy file and it's base throws an error like this:
Path 'C:\Users\kueng\AppData\Local\Temp/svndiff.tmp' must be an
immediate child of the directory

The problem: I didn't specify any temp file path. That path comes from
the fact that the diff first 'translates' the base file (line endings,
maybe keywords, ...), and by doing so creates that temporary file.

I would expect that since it was the svn function itself that created
that temp file, it shouldn't error out but check the original path instead.

To reproduce:
* modify the file subversion\libsvn_subr\config_win.c
* call svn_client_diff4(path, REVWC, path, REVBASE,
'subversion\libsvn_subr', ...)


   oo  // \\      "De Chelonian Mobile"
  (_,\/ \_/ \     TortoiseSVN
    \ \_/_\_/>    The coolest Interface to (Sub)Version Control
    /_/   \_\     http://tortoisesvn.net
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Fri Nov 23 20:54:40 2007

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.