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

AGAIN. Proposal of svn diff returning non-zero when difference found

From: Chen锛堥檲锛? Jun锛堝啗锛? <chjfth_at_hotmail.com>
Date: 2006-11-14 03:21:20 CET

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
Received on Tue Nov 14 03:21:38 2006

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.