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

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

From: Wolfram, Dirk <Dirk.Wolfram_at_funkwerk-sc.com>
Date: Wed, 16 Sep 2015 12:08:33 +0000

Hi Stefan,

sorry this was an accident.
Of course this mail should go to users_at_subversion.apache.org as well.

BR,
  Dirk

-----Ursprüngliche Nachricht-----
Von: Stefan Sperling [mailto:stsp_at_elego.de]
Gesendet: Mittwoch, 16. September 2015 13:32
An: Wolfram, Dirk
Betreff: Re: Bug Report: The "svn switch" command updates a files timestamp if the property svn:keywords is set

Hi Dirk,

Did you drop the users list address from Cc intentionally?
I'd like us to keep this discussion on the mailing list so other people can contribute to it.

Thanks.

On Wed, Sep 16, 2015 at 11:00:51AM +0000, Wolfram, Dirk wrote:
> Hi Stefan,
>
> 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.
>
> We are mainly using svn:keywords "Author Revision Date", so none of this would effect the file's contents while switching.
> And even if "URL" is set in the svn:keywords property but $URL$ is not used, there is no need of updating this file.
>
> But I understand that it's a matter of how issue #1975 was fixed and it's of course easier to just update all files with the svn:keywords property instead of parsing them for $URL$ and $Header$ keywords and only modify them if changes occur.
>
> Anyway I would appreciate, if either the presence of svn:keywords "URL Header" would be evaluated or the actual occurance of $URL$ or $Header$ in the file.
>
> Presently I think we have to live with the behavior and I've to decide, whether we have to remove the keywords or live with the fact that big parts of our system are going to be rebuild after switching.
>
> Best Regards,
> Dirk
>
> -----Ursprüngliche Nachricht-----
> Von: Stefan Sperling [mailto:stsp_at_elego.de]
> Gesendet: Mittwoch, 16. September 2015 10:42
> An: Wolfram, Dirk
> Cc: users_at_subversion.apache.org
> Betreff: Re: Bug Report: The "svn switch" command updates a files
> timestamp if the property svn:keywords is set
>
> On Tue, Sep 15, 2015 at 06:57:43PM +0000, Wolfram, Dirk wrote:
> > Hi all,
> >
> > I'd like to file a bug in Subversion 1.9.1 and 1.9.0, but I'm not sure if it's a deliberate behavior.
> > The problem was not encountered in Subversion 1.7.6, which we used for a long time.
> > I didn't find anything concerning this issue in the change log.
> >
> > Summary:
> > --------------
> > The "svn switch" command updates a file's timestamp, if the property svn:keywords is set.
>
> I believe this is a side effect of the fix for issue #1975 "svn switch does not update keywords"
> http://subversion.tigris.org/issues/show_bug.cgi?id=1975
>
> When svn updates a keyword it has to modify the file content and rewrite the file so the time stamp gets updated.
>
> I would argue your expectation that a file's time stamp won't be updated by svn switch is in direct contradiction to your use of svn:keywords on the same file. You can't really have both.
Received on 2015-09-16 14:08:56 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.