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

Re: [PATCH] Fix a deprecation warning.

From: Hyrum K. Wright <hyrum_at_hyrumwright.org>
Date: Thu, 12 Nov 2009 07:40:04 -0600

On Nov 12, 2009, at 5:53 AM, Julian Foad wrote:

> Stefan Sperling wrote:
>> On Thu, Nov 12, 2009 at 11:01:10AM +0000, Julian Foad wrote:
>>> We try hard not to change the output format. Why do we need to change it
>>> here? The other subcommands manage to convert abs paths back to rel
>>> paths for display.
>>
>> How? Can you show an example?
>
> I'm sure I recall somebody mentioning on dev@ that they did this for at
> least one other command earlier this year.
>
> A search for "to_rel" finds info_receiver_relpath_wrapper() which is
> undocumented, aargh, but looks like it does that sort of thing.
>
> Basically you just have to know what your base path is, transfer it
> (through a baton if necessary) to the output function, and strip it off
> the received abspath (making sure the base path is in canonical absolute
> form as well).

FWIW, centralization and sanitization of relative path output in an absolute path world is issue 3464:
http://subversion.tigris.org/issues/show_bug.cgi?id=3464

-Hyrum

------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=462&dsMessageId=2417033
Received on 2009-11-12 14:40:27 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.