You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@subversion.apache.org by Chen锛锛? Jun锛锛? <ch...@hotmail.com> on 2006/11/14 02:21:20 UTC
AGAIN. Proposal of svn diff returning non-zero when difference found
I hope you kind SVN developers add this solution for SVN users: Have svn
diff accept a special option(e.g. --unix-style-ret) which indicates svn
diff to return 1 when difference found and 2 if some other error happens.
I think this solution is definitely acceptable since it does not break
backwared compatability of SVN's behavior.
You guys can not doubt that the unix return-value scheme is the most
convenient when some invoking script of svn diff only wants to know whether
[ the diff is executed successful AND the contents to diff are identical ].
On the other hand, for svn diff's current behavior, just checking whether
something spouted from svn's stdout is not enough -- you have to monitor
stderr as well, for example: svn diff on a non-existing local file/dir
should indicate a failure, but nothing is written to stdout by svn.
Chen Jun
_________________________________________________________________
享用世界上最大的电子邮件系统― MSN Hotmail。 http://www.hotmail.com
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org