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

Re: update output idea - some more options

From: Alexis Huxley <ahuxley_at_gmx.net>
Date: 2002-04-27 15:43:03 CEST

> > I'll add that we do plan to have --silent option at some point too,
> > don't we?
>
> Oh, we have it now. `svn whatever > /dev/null' :-)

Some other options to consider:

cat > ~/.svnrc <<EOF
--silent
EOF
svn whatever ...

or

export SVN=--silent
svn whatever ...

or

Instead of 'svn whatever > /dev/null' - how about instead
'svn whatever 2> /dev/null'?

That last option would be my choice; (a) it leaves stdout untainted and
the output therefore more script friendly while not deviating from
'philosophy' in the area scripts are generally interested in
(stdout) and (b) it requires no app-specific ways of shutting it up
(as do the first two suggestions above).

On further consideration, I agree that adherence to 'silence is
golden' would be an inconsistency sufficiently big to be a bad move.
But if it can take a step in that direction at no expense to users
(rather than scripts) then it makes SVN more integratable into scripts
and increases its possibilities, doesn't it?

Alexis

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Sat Apr 27 15:44:12 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.