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

why the inconsistency between some svn commands?

From: Robert P. J. Day <rpjday_at_mindspring.com>
Date: 2005-08-05 21:05:49 CEST

  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

  $ 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?


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:08:37 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.