You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@subversion.apache.org by Max Bowsher <ma...@ukf.net> on 2003/06/28 16:27:07 UTC

Re: svn revert - seems it doesn't revert everything

Transferring from issues@ -> dev@

Shouldn't issues@ bounce all non-IssueZilla email?

Oliver Siegmar wrote:
> Hi all,
>
>
> $ cd workingdir
>
> $ ls
> fileA  fileB
>
> $ mkdir dirA
>
> $ svn add dirA
> A      dirA
>
> $ svn mv fileA dirA
> A  +   dirA/fileA
> D      fileA
>
>
> ...so far so good. Now I want to revert everything because I wanted
> the new (target) filename not fileA but fileC.
>
>
> $ svn revert -R *
> Reverted dirA
>
> $ svn st
> ?      dirA
> D      fileA
>
>
> mhm. Why is 'fileA' in deleted state?

Shell globbing.

fileA doesn't exist in the directory, hence svn doesn't get passed it as an
argument.

> Ok...do it manually:
>
>
> $ svn revert fileA
> Reverted fileA
>
>
> Now move it again:
>
>
> $ svn add dirA
> A         dirA
> A         dirA/fileA
>
>
> ...what the ...? Why 'svn revert' didn't removed fileA from directory
dirA?

Reverting an addition doesn't delete the file. That would be dangerous -
what if the file's contents were important?

Max.


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org