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

Re: Bug Report: The "svn switch" command updates a files timestamp if the property svn:keywords is set

From: Branko Čibej <brane_at_apache.org>
Date: Wed, 16 Sep 2015 20:21:57 +0200

On 16.09.2015 14:31, Stefan Sperling wrote:
> On Wed, Sep 16, 2015 at 12:08:33PM +0000, Wolfram, Dirk wrote:
>>> I agree that the use of the svn:keywords "URL" has to effect a file's contents if $URL$ is used and therefore the timestamp has to be changed as well.
>>> But even if the $URL$ keyword is not set and the file contents is not modified during switch, a change of the timestamp occurs.
>>> In my example I reduced this to an empty svn:keywords property.
> I see.
> This is indeed a side effect of how keyword expansion is implemented (in
> general, not just in 'svn switch'). The whole file is run through a
> translation process which expands any keywords, adjusts line endings
> if necessary, etc, and the result is installed into the working copy
> unconditionally.
> So the proposed change is to make Subversion avoid modifying files
> where no actual changes occured during this translation process.
> I don't see a downside in doing so.

I do: you still have to translate the file, but then you'd have to
compare it with the current contents of the working copy. That's
potentially a huge performance hit.

-- Brane
Received on 2015-09-16 20:22:02 CEST

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

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.