You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Oleksiy Zagorskyi <za...@i.ua> on 2016/02/14 13:31:10 UTC

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@it0:/zab/www-dev/trunk# whoami
root

root@it0:/zab/www-dev/trunk# ls -l users.php
-rw-r--r-- 1 zalex zalex 13689 Jan 18 16:00 users.php

root@it0:/zab/www-dev/trunk# svn st

root@it0:/zab/www-dev/trunk# svn revert users.php
Reverted 'users.php'

root@it0:/zab/www-dev/trunk# svn revert users.php
Reverted 'users.php'

root@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.

Tried to find something related at 
https://issues.apache.org/jira/issues/?jql=project%20%3D%20SVN%20AND%20text%20~%20"revert" 
or google it - nothing found.

--
Oleksiy

Re: files always reported as reverted for different owner

Posted by Philip Martin <ph...@wandisco.com>.
"Bert Huijben" <be...@qqmail.nl> writes:

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

I can reproduce, I've raised:

https://issues.apache.org/jira/browse/SVN-4622

-- 
Philip Martin
WANdisco

RE: files always reported as reverted for different owner

Posted by Bert Huijben <be...@qqmail.nl>.

> -----Original Message-----
> From: Oleksiy Zagorskyi [mailto:zalex_ua@i.ua]
> Sent: zondag 14 februari 2016 13:31
> To: users@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@it0:/zab/www-dev/trunk# whoami
> root
> 
> root@it0:/zab/www-dev/trunk# ls -l users.php
> -rw-r--r-- 1 zalex zalex 13689 Jan 18 16:00 users.php
> 
> root@it0:/zab/www-dev/trunk# svn st
> 
> root@it0:/zab/www-dev/trunk# svn revert users.php
> Reverted 'users.php'
> 
> root@it0:/zab/www-dev/trunk# svn revert users.php
> Reverted 'users.php'
> 
> root@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