|
View:
New views
3 Messages
—
Rating Filter:
Alert me
|
|
|
subversion & mingwHi,
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 |
|
|
Re: subversion & mingwMartin Hauner wrote on Sat, 7 Nov 2009 at 16:40 +0100:
> 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. > nb is a notify_baton, which is a file-scoped type. "path_prefix" appears just 5 times in the whole file. I don't understand why you're lost? > Can someone point me to the location where the path_prefix comes from? > notify.c, line 713: apr_filepath_get((char **)&nb->path_prefix, 0 /* flags */, pool); > ------------------------------------------------------ http://subversion.tigris.org/ds/viewMessage.do?dsForumId=462&dsMessageId=2415417 |
|
|
Re: subversion & mingwHi,
On 07.11.09 16:50, Daniel Shahaf wrote: > Martin Hauner wrote on Sat, 7 Nov 2009 at 16:40 +0100: >> 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. >> > > nb is a notify_baton, which is a file-scoped type. "path_prefix" > appears just 5 times in the whole file. I don't understand why you're > lost? After seeing the solution, I don't know :-) > >> Can someone point me to the location where the path_prefix comes from? >> > > notify.c, line 713: > > apr_filepath_get((char **)&nb->path_prefix, 0 /* flags */, pool); Thanks... -- 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=2415432 |
| Free embeddable forum powered by Nabble | Forum Help |