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

Re: problems with svn_client_log3()

From: Stefan Küng <tortoisesvn_at_gmail.com>
Date: 2006-04-09 17:41:17 CEST

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
Received on Sun Apr 9 17:41:50 2006

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.