#!/bin/bash
-cp /dev/null ../quilt-import.log
+#cp /dev/null ../quilt-import.log
log()
{
quilters=$(grep -v '^#' ../real_control | awk -F ' ' '$2=="quilt" { print $3; }')
for name in $quilters; do
+
+ # don't bother importing things that haven't changed
+ change_size=$(cd ../quilt;git diff last_merge.. -- "$name/" | wc -c)
+ [ $change_size -eq 0 ] && {
+ log "Unchanged quilt series $name"
+ continue
+ }
+
sfile="../quilt/$name/series"
base=$(sed -n 's/^[# ]*NEXT_BASE[ ]*\(.*\)[ ]*$/\1/p' "$sfile")
if [ -n "$base" ]; then
mv -f "$sfile.orig" "$sfile"
done
+( cd ../quilt; git update-ref refs/heads/last_merge HEAD )
+
git checkout master
exit 0