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

Re: Turn abs-paths into rel-paths for display

From: Julian Foad <julianfoad_at_btopenworld.com>
Date: Mon, 07 Dec 2009 19:14:52 +0000

Hyrum K. Wright wrote:
> On Dec 4, 2009, at 6:34 PM, Julian Foad wrote:
>
> > Daniel Näslund wrote (on IRC):
> >> Have we agreed on a way to turn abspaths into paths when displaying
> >> them to users?
> >
> > The last I heard was Kannan (I think) on email saying something like,
> > "So we want a function to do this, but do we also need a data structure
> > to do this?" I replied something like, "We need a conversion function,
> > and we need a way to pass the base path to that function."

It looks like we already have suitable functions -
svn_dirent_skip_ancestor() etc.:

/** Returns the relative path part of @a dirent2 that is below @a dirent1,
 * or just "" iif @a dirent1 is equal to @a dirent2. If @a dirent2 is not
 * below @a path1, return @a dirent2 completely.
[...]

- Julian

> > I'm sure either of you is very welcome to tackle it.
>
> Sounds like issue #3464: http://subversion.tigris.org/issues/show_bug.cgi?id=3464
>
> -Hyrum
>
> ------------------------------------------------------
> http://subversion.tigris.org/ds/viewMessage.do?dsForumId=462&dsMessageId=2427464
>
> Please start new threads on the <dev_at_subversion.apache.org> mailing list.
> To subscribe to the new list, send an empty e-mail to <dev-subscribe_at_subversion.apache.org>.

------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=462&dsMessageId=2427908

Please start new threads on the <dev_at_subversion.apache.org> mailing list.
To subscribe to the new list, send an empty e-mail to <dev-subscribe_at_subversion.apache.org>.
Received on 2009-12-07 20:15:18 CET

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.