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

subversion & mingw

From: Martin Hauner <hauner_at_web.de>
Date: Sat, 07 Nov 2009 16:40:18 +0100

Hi,

I'm fighting again with a drive letter case issue on mingw.

My current problem is that all python tests do not run. After a couple of
hours printf debugging in the python code I found the reason. The problem
is that the creation of the sandbox fails. After checkout it validates the
output of svn co which doesn't fit to the expected output.

It fails because svn co prints the progress with absolute paths (<- that
is the error) to stdout and the python code expects relative paths.

svn fails to create a relative path in notify(notify.c:139) when calling
svn_dirent_skip_ancestor:

After adding printf's I see this:

svn_dirent_skip_ancestor
c:/Development/mingw/svn-trunk/subversion/tests/cmdline
C:/Development/mingw/svn-trunk/subversion/tests/cmdline/svn-test-work/working_copies/stat_tests-1

Note the different case of the drive letter. Because of the case
mismatch svn_dirent_skip_ancestor doesn't strip the prefix and notify
prints an absolute path instead of a relative path.

Now I'm a bit lost in the svn source code. I can't find the place where
nb->path_prefix in notify(notify.c:139) comes from.

I tried to search for "path_prefix =" but that didn't help much. svn
doesn't stop at the breakpoints I set.

Can someone point me to the location where the path_prefix comes from?

-- 
Martin
Subcommander 2.0.0 Beta 5 - http://subcommander.tigris.org
a Win32/Unix/MacOSX subversion GUI client & diff/merge tool.
------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=462&dsMessageId=2415415
Received on 2009-11-07 16:40:44 CET

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.