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

BAD! 'svn diff' exits with 0 when some difference exists.

From: Chen锛堥檲锛? Jun锛堝啗锛? <chjfth_at_hotmail.com>
Date: 2006-08-19 12:29:38 CEST

For SVN 1.3.2 .

I've just found that 'svn diff' command's exit-code is 0 even if it has
found some difference.

It's unbelievable, since 'cvs diff' returns non-zero if some difference is
found, which is surely reasonable.

The makefiles for my GNUmake-based make system stores a list of local
directories that is under source control, so that my make system can
automatically cd to that list of dirs and do 'cvs diff' or 'svn diff' in
order to check whether some files has been locally modified. If 'cvs diff'
or 'svn diff' returns non-zero, my make system immediately knows some local
modification has existed and the make system stop running to notify its
user. If 'svn diff' always return 0, it will be programmatically hard to
know when difference occurs and stop the make system.

_________________________________________________________________
享用世界上最大的电子邮件系统— 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 Sat Aug 19 12:30:21 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.