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

RE: files always reported as reverted for different owner

From: Bert Huijben <bert_at_qqmail.nl>
Date: Mon, 15 Feb 2016 11:58:44 +0100

> -----Original Message-----
> From: Oleksiy Zagorskyi [mailto:zalex_ua_at_i.ua]
> Sent: zondag 14 februari 2016 13:31
> To: users_at_subversion.apache.org
> Subject: files always reported as reverted for different owner
>
> Is that ok?
>
> When I do "svn revert" using for example "root" account, but files in
> the folder are owned by different user, then every file is reported as
> reverted but actually there is nothing to be reverted?
> Such wrong messages mislead a lot!
>
> An example:
> root_at_it0:/zab/www-dev/trunk# whoami
> root
>
> root_at_it0:/zab/www-dev/trunk# ls -l users.php
> -rw-r--r-- 1 zalex zalex 13689 Jan 18 16:00 users.php
>
> root_at_it0:/zab/www-dev/trunk# svn st
>
> root_at_it0:/zab/www-dev/trunk# svn revert users.php
> Reverted 'users.php'
>
> root_at_it0:/zab/www-dev/trunk# svn revert users.php
> Reverted 'users.php'
>
> root_at_it0:/zab/www-dev/trunk# svn revert users.php
> Reverted 'users.php'
>
>
> In short to reproduce: a file owner and "svn revert" command issuer are
> different users.

Subversion doesn't check file ownership (as there is no platform independent way to do this), so there must be some different reason why you see that you can revert multiple times.

(I'm unable to reproduce your issue with just your script)

Which Subversion version did you try this with?

Does the file have any specific 'svn:' properties set on it?

I'm guessing that it has a 'svn:eol-style' set on it.
The only known reproducible case of this issue involves getting a non-standard encoded EOL in your repository, with an eol-style defined that should convert it to another style.

        Bert
Received on 2016-02-15 11:58:59 CET

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.