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

Re: Windows permissions are not kept for files

From: Stefan Küng <tortoisesvn_at_gmail.com>
Date: Sat, 12 Sep 2015 16:49:39 +0200

On 10.09.2015 08:12, Sebastian Baumhekel wrote:
> Hi all,
>
> This was outlined to me by a colleague and I was able to reproduce it
> and document it.
> I'm sorry that the screenshots are in German as my OS is German.
> But feel free to ask, if something is unclear.
>
> /Steps to reproduce:/
> Checkout a working copy of a folder containing some files in subversion.
>
> Change permissions to include another group (i.e. IIS_IUSRS) and force
> inheritance to the contained objects:Inline-Bild 2
>
> Now look at the permissions of the file "LICENSE" in this folder, it
> just inherits its parents permissions:
> Inline-Bild 3
>
> Change the file, save it and the revert it using TortoiseSvn.
> Look at the permissions of the file again:
> Inline-Bild 4
> They show a different set of permissions and the inheritance is disabled
> as well.
>
> /What is expected:/
> The permissions should be kept.
> So if a file inherits its parents permissions, it should do so as well
> when it is changed by subversion.

Yes, the reverted file/folder is created from scratch. So it doesn't
know about changed permissions.
If you want to keep the permissions, you have to deactivate the setting
"Use recycle bin when reverting" in Settings dialog->General->Dialogs 1.

That feature first moves all files/folders to the recycle bin (i.e.,
deleting them) and then reverts them. That way you can recover reverted
items from the recycle bin. But of course, that leads to changed
permissions getting lost.

Stefan

-- 
        ___
   oo  // \\      "De Chelonian Mobile"
  (_,\/ \_/ \     TortoiseSVN
    \ \_/_\_/>    The coolest interface to (Sub)version control
    /_/   \_\     http://tortoisesvn.net
------------------------------------------------------
http://tortoisesvn.tigris.org/ds/viewMessage.do?dsForumId=4061&dsMessageId=3137259
To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_tortoisesvn.tigris.org].
Received on 2015-09-12 16:49:41 CEST

This is an archived mail posted to the TortoiseSVN Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.