[oe-commits] org.oe.dev mtn2cl: make it select comments for the last week automagically and also append fixed bugs

koen commit openembedded-commits at lists.openembedded.org
Tue Jun 5 14:10:45 UTC 2007


mtn2cl: make it select comments for the last week automagically and also append fixed bugs

Author: koen at openembedded.org
Branch: org.openembedded.dev
Revision: cc77b9d135248dc8b58b6894e8ed95dcbd474752
ViewMTN: http://monotone.openembedded.org/revision.psp?id=cc77b9d135248dc8b58b6894e8ed95dcbd474752
Files:
1
contrib/mtn2cl/mtn2cl.sh
Diffs:

#
# mt diff -r2d1472a1e0df449983b90af96effe7e7bf77db3b -rcc77b9d135248dc8b58b6894e8ed95dcbd474752
#
# 
# 
# patch "contrib/mtn2cl/mtn2cl.sh"
#  from [b8f257c554bc38c8b98082a6c5715d46d7851766]
#    to [408e3b1e5deeb7ee3ad3f18954c7ae2db17cc458]
# 
============================================================
--- contrib/mtn2cl/mtn2cl.sh	b8f257c554bc38c8b98082a6c5715d46d7851766
+++ contrib/mtn2cl/mtn2cl.sh	408e3b1e5deeb7ee3ad3f18954c7ae2db17cc458
@@ -1,8 +1,10 @@
 #/bin/sh
 
 # This script takes the last 1000 revs and writes a ChangeLog
 
-for i in `mtn log --brief --no-graph --no-merges --last 1000 | awk '{print $2 ":" $1}'` ; do \
+export REV_NOW=`mtn automate heads |head -n1`
+
+for i in `mtn log --brief --no-graph --no-merges --from l:"1 week ago" --to ${REV_NOW}| awk '{print $2 ":" $1}'` ; do \
         export REV=`echo $i | awk -F: '{print $2}'`
         export AUTHOR=`echo $i | awk -F: '{print $1}'`
         export CL=`mtn ls certs ${REV} | grep -A 1 changelog | grep -v changelog | gawk -F'Value : '  '{ print $2 }'`
@@ -17,5 +19,12 @@ done
         echo >> ChangeLog
 done
 
+echo "Bug fixed:" >> ChangeLog
+
+wget 'http://bugs.openembedded.org/buglist.cgi?bug_file_loc=&bug_file_loc_type=allwordssubstr&bug_id=&bug_status=RESOLVED&bug_status=VERIFIED&bug_status=CLOSED&bugidtype=include&chfieldfrom=7d&chfieldto=Now&chfieldvalue=&email1=&email2=&emailassigned_to1=1&emailassigned_to2=1&emailcc2=1&emailqa_contact2=1&emailreporter2=1&emailtype1=substring&emailtype2=substring&field-1-0-0=bug_status&field0-0-0=noop&known_name=1WFixed&long_desc=&long_desc_type=substring&query_format=advanced&remaction=&short_desc=&short_desc_type=allwordssubstr&type-1-0-0=anyexact&type0-0-0=noop&value-1-0-0=RESOLVED%2CVERIFIED%2CCLOSED&value0-0-0=&ctype=csv' -O bugs.csv >& /dev/null
+
+cat bugs.csv | awk -F, '{print $1 " " $7 "\t " $8}' | sed s:\"::g >> ChangeLog
+
+
 rm `ls | grep -v ChangeLog | grep -v mtn2cl`
 






More information about the Openembedded-commits mailing list