Re: delta.py return codes

Re: http://lists.w3.org/Archives/Public/public-cwm-bugs/2005Feb/0000

The following patch to delta.py I think does the trick, or at least does
as
http://www.gnu.org/software/diffutils/manual/html_mono/diff.html#Invoking%20diff says diff should act as far as exit codes go.

espeoneefi@ceruleancity:~/programming/cwm/2000/10/swap$ cvs diff
delta.py
Index: delta.py
===================================================================
RCS file: /sources/public/2000/10/swap/delta.py,v
retrieving revision 1.5
diff -r1.5 delta.py
527c527,531
<     sys.exit(0)   # didn't crash
---
> #    sys.exit(0)   # didn't crash
>     if delta.contains():      # Any statements in delta at all?
>       sys.exit(1)
>     else:
>       sys.exit(0)

Received on Monday, 13 June 2005 20:07:15 UTC