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

Re: Getting Knowhere in Perl

From: Christopher H. Laco <claco_at_chrislaco.com>
Date: 2005-11-17 18:44:41 CET

Gerard Gerritsen wrote:
> Hello,
>
> another update :)
>
> looks like the code handles replaces a bit weird
>
> R /branches/ruby/doc/tools/dtd/docbook41/ent/iso-amsa.ent
> Copied from : /trunk/doc/tools/dtd/docbook41/ent/iso-amsa.ent (13505)
> R /branches/ruby/doc/tools/fo-stylesheet.xsl
> Copied from : /trunk/doc/tools/fo-stylesheet.xsl (13505)
>
> new version says
> M /branches/locking/subversion/clients/cmdline/export-cmd.c
> R /branches/locking/subversion/clients/cmdline/dtd/log.dtd
> Replaced from : /trunk/subversion/clients/cmdline/dtd/log.dtd (12893)
> A /branches/locking/subversion/clients/cmdline/dtd
> Copied from : /trunk/subversion/clients/cmdline/dtd (12893)
>
>

So, based on the tinkering, it appears the the only safe way to get the
contents for a url is:

walk the log tree from the request revision till a copy/replace event,
then request the file from the original location [using any revision at
that point)

using the Ra instead of Client, I guess even better is to do:

checkpath with request url and revision
if it exists, simply cat using url/rev

if it doesn't exists, walk the log tree again, and fid the original
location. request the original location at the requested revision

My braind hurts.. :-)

-=Chris

Received on Thu Nov 17 18:47:32 2005

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.