[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: Stefan Sperling <stsp_at_elego.de>
Date: Wed, 16 Sep 2015 14:31:20 +0200

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.
And it should restore the behaviour you were seeing with older releases.

If you like, please open a new issue in our issue tracker to track this
feature request.
Received on 2015-09-16 14:31:31 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.