~jlukas79/+junk/mysql-server

« back to all changes in this revision

Viewing changes to BitKeeper/triggers/pre-delta

manual merge 6.0-main --> 6.0-bka-review

Show diffs side-by-side

added added

removed removed

Lines of Context:
20
20
 exit 1
21
21
fi
22
22
 
 
23
# detect if C/C++ files have new trailing white space
 
24
trailingblank=`echo $BK_FILE | egrep '\.(c|.h)'`
 
25
if [ -n "$trailingblank" ]
 
26
then
 
27
    trailingblank=`bk diffs $BK_FILE | grep '^> .*[[:space:]]$'`
 
28
    if [ -n "$trailingblank" ]
 
29
        then
 
30
        echo "bk diffs $BK_FILE | grep '^> .*[[:space:]]$'"
 
31
        echo "reported white space at end of some added/modified lines"
 
32
        echo ""
 
33
        echo "Checkin FAILED!"
 
34
        echo "Fix the problem and retry."
 
35
        exit 1
 
36
    fi
 
37
fi