[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: Gary Thomas <gary_at_mlbassoc.com>
Date: 2005-04-05 21:04:22 CEST

On Wed, 2005-04-06 at 00:47 +0800, Li Daobing wrote:
> 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 *
>
> 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)

Just use -R:
  svn revert -R
or
  svn revert -R <sub-directory>

Don't forget the [ever useful] help feature built into subversion :-)

[gthomas@hermes packages]$ svn help revert
revert: Restore pristine working copy file (undo most local edits).
usage: revert PATH...

  Note: this subcommand does not require network access, and resolves
  any conflicted states. However, it does not restore removed directories.

Valid options:
  --targets arg : pass contents of file ARG as additional args
  -R [--recursive] : descend recursively
  -q [--quiet] : print as little as possible
  --config-dir arg : read user configuration files from directory ARG

-- 
------------------------------------------------------------
Gary Thomas                 |  Consulting for the
MLB Associates              |    Embedded world
------------------------------------------------------------
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Wed Apr 6 18:31:57 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.