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

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

From: Max Bowsher <maxb_at_ukf.net>
Date: 2003-06-28 18:27:07 CEST

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
Received on Sat Jun 28 18:28:28 2003

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.