diff options
-rwxr-xr-x | hgimport | 15 |
1 files changed, 15 insertions, 0 deletions
@@ -10,6 +10,10 @@ if [ "$1" == "" ]; then exit fi +if [ "$CHECKPATCH" == "" ]; then + CHECKPATCH="/lib/modules/`uname -r`/build/scripts/checkpatch.pl" +fi + TREE="`echo $1|perl -ne 's|[/]$||; s|^.*[/]||; print $_;'`" if [[ "`echo $1|grep ^http://`" != "" ]]; then @@ -81,6 +85,17 @@ done echo "Diffstat of the imported series:" diffstat -w 72 -p1 $TMP/hg_${TREE}_*.patch +for i in $TMP/*.patch; do + err="`$CHECKPATCH -q --notree $i`" + + if [ "$err" != "" ]; then + echo "$i:`grep -v \# $i |head -2`" + echo $err + echo + fi +done + + # To cherry pick all files, you can do something like: #for i in $TMP/newpatches/*; do # hg import $i; |