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

Re: Return status of `svn diff'

From: Stefan Monnier <monnier+gmane.comp.version-control.subversion.devel/news/_at_rum.cs.yale.edu>
Date: 2003-05-09 00:30:44 CEST

> The svn client program returns 1 to indicate an error happened, just
> like most programs do. It would be really strange and inconsistent,
> IMO, to have 'return 1' mean something completely different just
> because you invoked the 'diff' subcommand.

Makes sense.

>> It is not of the utmost importance, but it can be convenient in scripts.
> If you want to know whether a diff occurred, couldn't you just check
> to see if any lines were printed to stdout? :-)

As I said, it is not of the utmost importance. It's just that sometimes
checking the output is inconvenient (it's already gone somewhere else).

        Stefan

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Fri May 9 00:33:41 2003

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.