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

RE: svn_wc_translated_file3

From: Bert Huijben <bert_at_vmoo.com>
Date: Mon, 9 Aug 2010 13:53:36 +0200

> -----Original Message-----
> From: Stefan Küng [mailto:tortoisesvn_at_gmail.com]
> Sent: zaterdag 7 augustus 2010 13:07
> To: Daniel Shahaf
> Cc: Subversion Development
> Subject: Re: svn_wc_translated_file3
>
> On 07.08.2010 12:52, Daniel Shahaf wrote:
> > What's the solution?
>
> I'm using svn_wc_get_pristine_copy_path() and disable the deprecated
> warnings for that API call. I won't get a translated file that way, but
> most if not all UI diff tools have options to ignore EOLs. And if
> keywords aren't expanded, well I guess users can live with those lines
> showing up as different when doing such diffs.
>
> Using svn_wc_get_pristine_contents() instead of
> svn_wc_get_pristine_copy_path() is not an option for me here because I
> can't pass a stream to an external diff application. Which means I would
> have to first create a copy of that file (i.e., save the stream), which
> defeats the whole purpose of doing a *fast* diff.
>
> This leads me to another request: would it be possible to 'un-deprecate'
> the svn_wc_get_pristine_copy_path() API?
> Not a big deal of course, I can use this deprecated API just fine.

One of the ideas of WC-NG (which will most likely not be part of 1.7, but
can be added later without really updating our current pristine api) was to
allow compressed and/or (partially) absent pristine storage.

This specific api function requires that the file is available in the
pristine store as uncompressed file or that we store a copy of the file in a
tempfolder (see the documentation update from Julian in r983593).

The deprecation of this api is most likely part of removing this dependency.

        Bert
Received on 2010-08-09 13:54:42 CEST

This is an archived mail posted to the Subversion Dev mailing list.