[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] [PATCH RFC v2 00/13] New event API
Roger Pau Monné writes ("Re: [Xen-devel] [PATCH RFC v2 00/13] New event API"): > I'm sorry to ask such a noobish question... I'm trying to import this > patches into my source tree, but mimport seems to be unable to > correctly sort them (maybe because they seem to be in git format). > What's the best way to import them directly from my mailbox? I'm afraid I don't know. With my upstream hat on, for applying patches, I have an absolutely hideous script. (Below but don't read it if you want to keep your lunch.) With my contributor hat on I almost always use git. Ian. #!/bin/bash set -e file=$1 perl -pe <$file >$file.mangled ' BEGIN { $nl=""; } if (m/^\S/ || m/^$/) { if (defined $subj) { die "$subj ?" if $subj =~ m/rfc/i; $subj =~ s/\[xen-devel\]//i; $subj =~ s/\[patch[ 0-9a-z,]*\]//i; $subj =~ s/\s+/ /g; $subj =~ s/^\s+//; $subj =~ s/\s+$//; print "Subject: $subj\n"; $subj= undef; $nl= "\n"; } } if (m/^subject:\s+/i) { $subj= $'\''; } elsif (defined $subj) { $subj .= $_; } if (m/^$/) { print $nl; $nl= ""; } $_="" if defined $subj; if ($last =~ m/^signed-off-by/i && !m/^signed-off-by/i) { print <<END or die $!; Committed-by: Ian Jackson <ian.jackson@xxxxxxxxxxxxx> END #Acked-by: Ian Jackson <ian.jackson@xxxxxxxxxxxxx> # #Acked-by: Ian Campbell <ian.campbell@xxxxxxxxxx> } $last= $_; ' formail -s hg import - < $file.mangled _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |