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

Julian Foad <[email protected]> Mon, 07 Dec 2009 19:14:52 +0000
Newsgroups gmane.comp.version-control.subversion.devel,gmane.comp.version-control.subversion.rapidsvn.devel
Message-ID <1260213292.2077.527.camel@edith>
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 <[email protected]> mailing list.
> To subscribe to the new list, send an empty e-mail to <[email protected]>.

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

Please start new threads on the <[email protected]> mailing list.
To subscribe to the new list, send an empty e-mail to <[email protected]>.