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

Re: [PATCH] Allow revert --recursive to have implict dot-target

From: mark benedetto king <bking_at_inquira.com>
Date: 2002-07-11 15:48:39 CEST

On Thu, Jul 11, 2002 at 08:34:51AM -0400, Garrett Rooney wrote:
> if i wanted my computer to ask me 'do you mean it' every time i try to
> do something i'd be running a different operating system.

I know that you run FreeBSD, which probably means you have lots
of scar tissue in your feet. :-)

> having a setting one can tweak to make this go away is NOT a valid
> solution. we should have reasonably safe/sane defaults and provide
> tweakable options only as a last resort.

I'm okay with the default to be "destroy user data with wild abandon",
as long as we explain at install time that new users may want to set
the novice mode.

It is my experience that most systems do default to novice mode, and
a one-time tweak for experienced users really isn't all that frustruating.

> big -1 on anything that makes the client ask 'are you sure?'. if you
> want that kind of behavior, write a gui client and give it all the
> little confirmation dialogs you want, but keep it out of my CLI.

Well, the thing is, in order to put it in the GUI correctly, the system
needs to be instrumented to actually call these callbacks.

We can't expect the GUI designers to know that "svn foo" can occasionally
be irreversible. Also, even if they *did* know that "svn foo" sometimes
destroys user data, wouldn't it be nice if they didn't have to prompt
*every* time, but only when it became an issue?

I think it would be neat if I could do "svn update --prompt-me"
and it would say something like:

U foo.c ? (Y/N) Y
U bar.c ? (Y/N) N
G foo.c ? (Y/N/E) E

Where the "E" option for the merge would bring up $EDITOR with conflict
markers in place, so that I can hand-merge. I used this sort of feature
all the time with perforce (p4 resolve -v, IIRC). It rocked. Especially
because I had files that I knew from experience wouldn't merge well (too
much very similar code).

You could also have --prompt=G,U. I don't know what the UI should be,
I'm not a UI expert, but I do know that the functionality would be nice.
Without a callback system this is really tricky work.


To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Thu Jul 11 15:55:28 2002

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.