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

Re: Where is Subversion 1.7's pristine copy of a given file?

From: Ryan Schmidt <subversion-2012a_at_ryandesign.com>
Date: Fri, 13 Apr 2012 04:55:17 -0500

On Apr 13, 2012, at 04:43, Daniel Shahaf wrote:

> Ryan Schmidt wrote on Fri, Apr 13, 2012 at 03:55:34 -0500:
>
>> How can I modify this script to be compatible with a Subversion 1.7
>> format working copy?
>
> 1.7-specific, relies on implementation details:
> `svn info`[Working Copy Root Dir]`/.svn/pristine/`svn info`[SHA-1 checksum]`

Thanks! That was the info I needed.

> 1.x-compatible:
> use 'svn cat' to obtain a tempfile.

That's a good idea. It sounds like this would be less work and automatically backward- and future-compatible.

> 1.8:
> we might move to compressed pristines. And if we do, we might provide
> a "give me a disk path of the uncompressed file that I can pass to my
> diff tool" API.
Received on 2012-04-13 11:55:56 CEST

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