[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: Julian Foad <julian.foad_at_wandisco.com>
Date: Thu, 12 Nov 2009 11:53:58 +0000

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).

- Julian

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