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

finding the root of a repository url

From: SteveKing <steveking_at_gmx.ch>
Date: 2003-06-30 20:29:52 CEST

Hi,

For my subversion client (TortoiseSVN) I need to
find the root of a subversion repository url from
a log.

Right now I get the log of a directory, which
gives me all log entries and for each of those
the list of files which were changed.
Each entry in that list is a svn_log_changed_path_t
structure, and the copyfrom_path member
has a path to the changed file. But this path
is based on the repository root.

So my problem is: how do I create a full url
from those entries?

Right now I'm just doing an svn_client_ls, starting
from the url of the directory the log was done
(e.g. http://svn.collab.net/repos/svn/trunk/) and
go up step by step one folder until svn_client_ls
returns an error. This usually means that
on that path (e.g. http://svn.collab.net/repos/) there's
no subversion repository anymore and the path checked
before is the repository root.

I know this is a terrible way to do that but I haven't found
another.
I really hope that someone can point me to a
better solution to get the repository root url.

Stefan

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Mon Jun 30 20:30:59 2003

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.