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

Re: svn switch, touches files with svn:keywords

From: Nico Kadel-Garcia <nkadel_at_gmail.com>
Date: Fri, 23 Sep 2016 18:53:43 -0400

On Fri, Sep 23, 2016 at 6:36 AM, FEDERICO PRADES ILLANES
<federico.prades_at_bbva.com> wrote:
> Hello subversion-users,
>
> I think I found a bug in subversion, not in the issue tracker:
>
> Subversion: svn, version 1.9.4 (r1740329)
> compiled Apr 24 2016, 15:40:35 on x86-microsoft-windows
> System: Windows 7, SP1
>
> Steps to reproduce:
>
> Create a branch b1.
> Create an dummy file in b1, with svn:keywords.
> Don't use the svn:keywords on the file.
> Commit the changes to b1.
> Create a branch b2, from b1.
> Perform a switch to b2.
>
> Expected results:
>
> Dummy file modification time hasn't change
>
> Actual results
>
> Dummy file modification time has change
>
> This is a problem specially with header files, in C++ projects. This bug
> wasn't present in svn 1.7.9 r1462340.
>
> Can someone else confirm, and will proceed to open the issue.
>
> Thanks,
>
> Federico Prades Illanes - ext. (2)75682 - Software Evangelist
> Quantitative and Business Solutions (QBS) - CIB - BBVA

I didn't expect it, but I'm completely unsurprised. svn:keywords have
to rendered, and switching an upstream repository, branch, tag, etc.,
etc. can all change the WebURL, Author, Date, and other keywords. So
I'd be completely unsurprised if all files with svn:keywords get
reparsed and touched, even if no change results in the end.

Tis is one of the fragilities of keywords in all source control
systems. innocuous changes with no change in performance lead to
modifications of source files, even such innocuous changes as comment
lines.
Received on 2016-09-24 00:53:57 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.