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

Re: Question regarding repository-local path keyword

From: John Peacock <jpeacock_at_rowman.com>
Date: 2005-01-02 02:42:39 CET

John Peacock wrote:
> I've gotten the correct elements in place to provide the information to
> fill in the repository local path for a given file:

Just to follow up on my own posting, I have finished the export and cat cases
(though I have to decide whether the LocalPath should appear as a relative path
or an absolute path):

$ cat export/sub1/sub2/test1
$HeadURL: file:///home/jpeacock/tmp/repo/sub1/sub2/test1 $
$RepositoryLocalPath: sub1/sub2/test1 $

$ svn cat file:///home/jpeacock/tmp/repo/sub1/sub2/test1
$HeadURL: file:///home/jpeacock/tmp/repo/sub1/sub2/test1 $
$RepositoryLocalPath: /sub1/sub2/test1 $

but the normal case (i.e. translate) is a problem. The translate code relies
completely on the svn_wc library, which doesn't apparently bother to note the
repository root path (though there is a entry->repos element which seems to be
intended to convey this information).

It's most annoying that the three ways that a file can have it's keywords
expanded go at it from almost completely different directions. I would have at
least expected that the cat and export code would have more features in common,
but no such luck.

I'll have to spelunk around the WC code (and the RA code which calls it) and try
and see where the entry object is being populated and see if I can shove in the
entry->repos value correctly...


To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Sun Jan 2 02:44:31 2005

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.