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

RE: why the inconsistency between some svn commands?

From: Vaughan, Steven <Steven_Vaughan_at_G1.com>
Date: 2005-08-05 21:16:40 CEST

I always took that to be a safety measure. Updating
won't necessarily destroy local changes you have made
to the working copy. This behavior (destruction of the
local changes), however, is exactly what reversion is
meant to do. While accidentally updating your working
copy recursively won't generally ruin your life, having
the same accident with reversion very well may.

-steve

> -----Original Message-----
> From: Robert P. J. Day [mailto:rpjday@mindspring.com]
> Sent: Friday, August 05, 2005 2:06 PM
> To: Subversion mailing list
> Subject: why the inconsistency between some svn commands?
>
>
>
> not a big deal but i'm curious about the apparent inconsistencies
> between some svn commands, particularly WRT default arguments.
>
> say i want to update my working copy. i can just type:
>
> $ svn update
>
> by default, "update" uses a path argument of "." and works
> recursively. if you *don't* want recursive behaviour, you have to
> *explicitly* say so with "--non-recursive" or "-N".
>
> OTOH, "svn revert" appears to take exactly the opposite approach.
> you *need* to specify the path to work on (even if it's "."), and it
> is non-recursive by default, which you have to override with
> "--recursive". do i have this right?
>
> so if i did an update, regretted it and wanted to revert, i'd need
> to:
>
> $ svn update
> $ svn --recursive revert .
>
> which strikes me as non-intuitive. it seems that, for consistency,
> commands should try (as much as possible) to take the same approach
> to defaults. or am i misreading something?
>
> rday
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
> For additional commands, e-mail: users-help@subversion.tigris.org
>
>
 
NOTICE: This E-mail may contain confidential information. If you are not
the addressee or the intended recipient please do not read this E-mail
and please immediately delete this e-mail message and any attachments
from your workstation or network mail system. If you are the addressee
or the intended recipient and you save or print a copy of this E-mail,
please place it in an appropriate file, depending on whether
confidential information is contained in the message.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Fri Aug 5 21:18:00 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.