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

Bug in Subversion regarding file attributes

From: Andy Canfield <andy.canfield_at_pimco.mobi>
Date: Sun, 21 Aug 2011 18:21:56 +0700

I created a repository and created a subdirectory in it named 'scripts'.
In this are a half-dozen Linux shell scripts. Unfortunately, I set the
execute flag on only five of them; the sixth was untested as of my first
commit so I had never noticed that the execute attribute was unset.

[1] I set the execute attribute and did a commit, but the file was not
updated in the repository. Apparently the change in atributes was not
recognized as a file change by Subversion.

[2] I touched the file - I touched ALL the files in scripts, and none of
them was updated on the commit. Apparently the file timestamp change was
not taken as a file change by Subversion. OK, Subversion is not storing
timestamps.

[3] I edited the file, and this was taken as an update by Subversion. I
just added a blank line to the end of it. But note that the file
attributes now include the execute flag. I did another checkout, and
unfortunately the execute flag is STILL not set.

In my humble opinion [1] and [3] should have resulted in the file
attributes stored in the repository being changed.

So I did an svn delete for that file, then a commit. I restored the file
from a backup, set the attributes, did an svn add for that file, then a
commit. Went to another directory and did an svn checkout. OK; now the
attributes are correct.
Received on 2011-08-21 13:22:44 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.