[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: Dick Davies <rasputnik_at_hellooperator.net>
Date: 2005-04-05 19:07:04 CEST

* Li Daobing <lidaobing@gmail.com> [0447 17:47]:
> Andrew Thompson wrote:
> > Steve Greenland wrote:
> >
> >> On Tue, Apr 05, 2005 at 10:46:39AM -0400, Andrew Thompson wrote:
> >>
> >>> Gary Thomas wrote:
> >>>
> >>>> svn revert
> >>>>
> >>>
> >>> Revert only undoes your changes(which might be enough).
> >>
> >>
> >> Which is usually what you want. If I had wanted it to be updated, I'd
> >> have said 'svn revert foo.c && svn update foo.c'.
> >
> >
> > I figured most of you probably knew that already. I wanted the caveat to
> > be attached to the answer for posterity.
> >
> > I'm not familiar with CVS development, so I don't know what was intended
> > by the command: cvs update -C
> >
> svn revert do *not* support
> svn revert *

That wouldn't work for subdirectories anyway.
 
> 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

-- 
'common sense is what tells you that the world is flat.'
		-- Principia Discordia
Rasputin :: Jack of All Trades - Master of Nuns
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Tue Apr 5 19:07:34 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.