You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@subversion.apache.org by Rüdiger Meier <sw...@gmx.de> on 2011/09/09 20:46:32 UTC

bug, svn revert does not restores svn add'ed/rm'ed files

Hi,


The subject says it.

$ svn --version
svn, version 1.6.17 (r1128011)

$ svn st
$ touch bla
$ svn add bla
A    bla
$ rm bla
$ svn st
!    bla
$ svn revert .
$ svn st
!    bla


But this works:
svn revert -R .


cu,
Rudi

Re: bug, svn revert does not restores svn add'ed/rm'ed files

Posted by Konstantin Kolinko <kn...@gmail.com>.
2011/9/9 Rüdiger Meier <sw...@gmx.de>:
> Hi,
>
>
> The subject says it.
>
> $ svn --version
> svn, version 1.6.17 (r1128011)
>
> $ svn st
> $ touch bla
> $ svn add bla
> A    bla
> $ rm bla
> $ svn st
> !    bla
> $ svn revert .
> $ svn st
> !    bla
>
>
> But this works:
> svn revert -R .
>

1. That is by design: revert operation by default is not recursive.

E.g. if I edit a file, calling "svn revert" on its parent directory
won't revert the file, and "svn revert . --depth infinity" will revert
it. You are observing the same for an added file.

Consider if you have changes some property on the directory (e.g.
svn:ignore or svn:mergeinfo) and want to revert it.  The only way is
to call "svn revert" on this directory, and that is why it should not
be recursive.

BTW, I tested your commands and behaviour in 1.7 is the same.

2. This thread belongs to the users@ list, not dev@.

Best regards,
Konstantin Kolinko