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

Re: Svn revert --recursive behavior

From: Greg Stein <gstein_at_lyra.org>
Date: 2002-02-12 19:35:34 CET

On Tue, Feb 12, 2002 at 08:29:53AM -0600, cmpilato@collab.net wrote:
> Karl Fogel <kfogel@newton.ch.collab.net> writes:
> > Blair Zajac <blair@orcaware.com> writes:
> > > It seems odd that you have to specify a path to
> > >
> > > svn revert --recursive
> > >
> > > to get all files reverted, such as
> > >
> > > svn revert --recursive .
> > >
> > > Its not the normal usage I would think of. Is there any reason not
> > > to change this?

No. We specifically avoid applying a default path. Any kind of a mistype
here will *lose changes*. We want the user to be clear about what changes
they are tossing.

>...
> > since revert is also not recursive by default). Exactly what "revert
> > the current directory" means I'm not sure, I must confess, but surely
> > it means something. :-)
>
> It reverts property changes on the current directory.

Yup. But a recursive revert on a directory could revert a whole lot more
than you might think (toss all local mods to all files and dirs under it).
If somebody leaves off a path, does that revert, then they're going to be
pissed if we assume "."

Cheers,
-g

-- 
Greg Stein, http://www.lyra.org/
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Sat Oct 21 14:37:07 2006

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.