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

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

From: Konstantin Kolinko <knst.kolinko_at_gmail.com>
Date: Sat, 10 Sep 2011 01:47:13 +0400

2011/9/9 Rüdiger Meier <sweet_f_a_at_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
Received on 2011-09-09 23:47:46 CEST

This is an archived mail posted to the Subversion Dev mailing list.

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