[MLton] Slow commits to MLton's SVN repository

Stephen Weeks sweeks at sweeks.com
Fri Jan 12 08:02:41 PST 2007


I wonder if it's the hack I put in post-commit to limit diffs that go
to the commit list to 64k?  Here's the code.

    d="/tmp/z.svn-diff"
    look diff >$d
    chmod a+rw $d
    size=`ls -l $d | awk '{print $5}'`
    if [ "$size" -ge 65536 ]; then
        cat $d | (dd ibs=1 count=65536; dd of=/dev/null) 2>/dev/null
    else
        cat $d
    fi
    rm -f $d

I'm open to improvements.



More information about the MLton mailing list