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

Re: svn revert -R and deleted files. Bug?

From: Carsten Koch <Carsten.Koch_at_icem.com>
Date: 2006-11-23 19:29:31 CET

Dmitry Suzdalev wrote:
...
> Let's say I have working copy which has the following layout (all files and
> dirs are versioned):
>
> workingcopy/README
> workingcopy/TODO
> workingcopy/src/myfile.cpp
> workingcopy/src/myfile.h
> workingcopy/...someother_files...
> ...
>
> And then I do:
>
> cd workingcopy
> svn rm README
> svn rm TODO
> svn rm src/myfile.*
>
> Okaaay. Now I want to revert them all. Being in workingcopy/ I issue the
> command:
> svn revert -R *
> (or svn revert -R . - no matter)
>
> And here happens something strange.
> src/myfile.cpp and src/myfile.h
> get restored, but README and TODO are still reported by svn status as:
> D README
> D TODO
>
> Why?

Because the '*' in "svn revert -R *" is expanden by the shell.

So, what you told svn was: "svn revert -R src".
And that's what it did do.
You should have used "svn revert -R .".

Carsten.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Thu Nov 23 19:30:15 2006

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

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