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