Login | Register
My pages Projects Community openCollabNet

Discussions > dev [DISABLED] > Re: subversion & mingw

subversion
Discussion topic

Hide all messages in topic

All messages in topic

Re: subversion & mingw

Author Martin Hauner <martin dot hauner at gmx dot net>
Full name Martin Hauner <martin dot hauner at gmx dot net>
Date 2009-11-07 08:56:57 PST
Message Hi,

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.

Re: subversion &amp; mingw

Author Daniel Shahaf <d dot s at daniel dot shahaf dot name>
Full name Daniel Shahaf <d dot s at daniel dot shahaf dot name>
Date 2009-11-07 07:50:44 PST
Message 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?

> 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);

>

subversion &amp; mingw

Author hauner
Full name Martin Hauner
Date 2009-11-07 07:40:24 PST
Message 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/subversio​n/tests/cmdline
C:/Development/mingw​/svn-trunk/subversio​n/tests/cmdline/svn-​test-work/working_co​pies/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.
Messages per page: