You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@subversion.apache.org by Stefan Küng <to...@gmail.com> on 2006/04/09 13:31:41 UTC

problems with svn_client_log3()

Hi,

I'm currently working on using the new API's that Subversion 1.4 will 
introduce. I thought that if I use them soon enough, it will help 
discover bugs before it's released.

So, I think I found the first. The docstring for svn_client_log3() 
states that: "If peg_revision is svn_opt_revision_unspecified, it 
defaults to svn_opt_revision_head for URIs or svn_opt_revision_working 
for WC targets."

I thought that by passing svn_opt_revision_working as the peg revision 
together with a path to a working copy file would then work too. But 
that fails:
Can't check path 'file:\\\D:\Repos1\myfile.java': Die Syntax für den 
Dateinamen, Verzeichnisnamen oder die Datenträgerbezeichnung ist falsch.
(that's translated "the syntax for the file- or directory name or the 
drive is wrong").

I think it should work if I pass the default myself for the peg revision.

Stefan

btw: the help string for 'svn help log' doesn't mention the peg 
revisions yet.

-- 
        ___
   oo  // \\      "De Chelonian Mobile"
  (_,\/ \_/ \     TortoiseSVN
    \ \_/_\_/>    The coolest Interface to (Sub)Version Control
    /_/   \_\     http://tortoisesvn.tigris.org

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org

Re: problems with svn_client_log3()

Posted by Stefan Küng <to...@gmail.com>.
Stefan Küng wrote:

> I'm currently working on using the new API's that Subversion 1.4 will 
> introduce. I thought that if I use them soon enough, it will help 
> discover bugs before it's released.
> 
> So, I think I found the first. The docstring for svn_client_log3() 
> states that: "If peg_revision is svn_opt_revision_unspecified, it 
> defaults to svn_opt_revision_head for URIs or svn_opt_revision_working 
> for WC targets."
> 
> I thought that by passing svn_opt_revision_working as the peg revision 
> together with a path to a working copy file would then work too. But 
> that fails:
> Can't check path 'file:\\\D:\Repos1\myfile.java': Die Syntax für den 
> Dateinamen, Verzeichnisnamen oder die Datenträgerbezeichnung ist falsch.
> (that's translated "the syntax for the file- or directory name or the 
> drive is wrong").
> 
> I think it should work if I pass the default myself for the peg revision.
> 
> Stefan
> 
> btw: the help string for 'svn help log' doesn't mention the peg 
> revisions yet.

After testing a little bit more, I almost think the peg revision doesn't 
work at all.

Showing the log for a file which has been renamed in revision 192 and 
still exists in HEAD (rev 224) like this:

svn_client_log3(array_with_path_to_file_in_workingcopy,
                 224, 191, 1, 100, true, false,
                 callback_function, (void*)this,
                 &ctx, pool);

will fail with error:
Unable to find repository location for
'file:///D:/Repos1/aaa%20aaaa' in revision 191.

I thought that a peg revision would prevent such an error because the 
file clearly exists in the peg revision with the specified name.

I'm using the Subversion library compiled from trunk, revision 19264.

Stefan

-- 
        ___
   oo  // \\      "De Chelonian Mobile"
  (_,\/ \_/ \     TortoiseSVN
    \ \_/_\_/>    The coolest Interface to (Sub)Version Control
    /_/   \_\     http://tortoisesvn.tigris.org

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org