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

Re: is there any command act like `cvs update -C'

From: Kevin Puetz <puetzk_at_puetzk.org>
Date: 2005-04-06 05:31:18 CEST

Dick Davies wrote:

> * Li Daobing <lidaobing@gmail.com> [0447 17:47]:

>> > I'm not familiar with CVS development, so I don't know what was
>> > intended by the command: cvs update -C

it would be the equivlant of svn revert foo && svn update foo. It fetches
HEAD (or the sticky tag) from the repository and overwrites the local copy.

>> svn revert do *not* support
>> svn revert *

Well, the * gets expanded by the shell, and then it gets mad about having to
revert things that aren't modified (or aren't even in source control). It
*could* try to proceed anyway, but generally revert tries to be picky about
questionable arguments, since it's going to destroy things forever...

> That wouldn't work for subdirectories anyway.

Well, it would revert property changes :-). But it wouldn't recurse

>> So I don't know how to ignore all my local changes, and get a clean
>> source(based on this version, because the source is too big to checkout
>> it again)
>
> something like
>
> for i in `svn status | awk '{print $2}'`
> do
> svn revert $i
> done

Or the simpler, "svn revert --recursive ."
Just be sure you mean it before you throw out all your local changes :-)

You may also find svn-clean in
http://svn.collab.net/viewcvs/svn/trunk/contrib/client-side/ useful - it
will delete any unversioned files from the WC. combined with revert, it
should then be a totally clean checkout again (except for anything that's
been switched == sticky updated, which will still be switched)

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Wed Apr 6 19:45:55 2005

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.