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

Re: Cannot get log of deleted branch by URL

From: Karl Krach <mailinglists_at_blueSpirit.la>
Date: Sun, 08 Jan 2012 09:19:13 +0100

On 01/07/2012 11:26 PM, Ryan Schmidt wrote:
> you must use a peg revision to specify a revision in which it still existed

Ryan, this works for the command line, thx!

$ svn log -r13 \
  svn://localhost/testproject/branches/work_route/hugo.txt_at_13
------------------------------------------------------------------------
r13 | charly | 2012-01-05 10:18:37 +0100 (Thu, 05 Jan 2012) | 3 lines

+IMPROVED:
 * Adding some text for the trunk - but not for the release

------------------------------------------------------------------------

The funny thing is, I hit the problem first in the code - and posted the
cmd line example for clearer understanding. Here is the code, which
should do the same - where is my fault????

apr_array_header_t* targets =
  apr_array_make( pool, 1, sizeof(const char*) );
APR_ARRAY_PUSH (targets, const char*)
  = "svn://localhost/testproject/branches/work_route/hugo.txt";

svn_opt_revision_t peg_revision;
peg_revision.kind = svn_opt_revision_number;
peg_revision.value.number = 13;

[...]

pError = svn_client_log5( targets,
                          &peg_revision,
                          [...] );

Complete code at http://paste.bluespirit.la/index.php/view/7691156

Best regards,

Charly
Received on 2012-01-08 09:20:32 CET

This is an archived mail posted to the Subversion Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.