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

Re: [GSOC]Show progress output

From: Peter Samuelson <peter_at_p12n.org>
Date: Fri, 3 Apr 2009 08:55:11 -0500

[Yes, I know this thread is a week old.]

[John Peacock]
> I suppose we could try to have it default to ON if the process has a
> tty and OFF otherwise (which should deal with scripting), but knowing
> how the Subversion client libraries are designed, that information
> may be two or more call sites removed from where you'd want to know.

We already have precedent for breaking scripts. Remember when you
could do a simple 'svn update' in a post-commit hook? Now it will get
you in trouble, because by default it does interactive conflict
resolution. The solution is '--non-interactive'. And in fact we
encourage people to always use '--non-interactive' in scripts, even for
subcommands that are already noninteractive, because you never know
which subcommands may _become_ interactive in future releases.

That said, I would favor moving all of our interactivity to use
/dev/tty instead of stdin/stdout, and treat failure to open /dev/tty as
if --non-interactive had been passed. (And, well, I have no idea what
the Windows equivalent would be.)

-- 
Peter Samuelson | org-tld!p12n!peter | http://p12n.org/
Received on 2009-04-03 15:55:51 CEST

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.