Friday Apr 26, 2013

How I generate an OpenJDK webrev

It seems there are a lot of recipes for generating OpenJDK webrevs. Here's the one I use. I have been meaning to turn it into a proper script but have been too busy/lazy. I use the mercurial mq extension and am always generating webrevs for mq patches.
Generating an OpenJDK Webrev
# refresh the patch and make sure jcheck would be happy with it.
$ hg qrefresh -e
# generate webrev of my applied mq patches. top patch is used for name. 0 is hardcoded revision #
$ ksh ../make/scripts/webrev.ksh -m -u mduigou -O -r qparent -c `hg qtop` -o ~/`hg qtop`/0
# copy bug ids from applied mq patches into title
$ hg log -r qparent:tip --template "{desc}\n" | grep "^[0-9]\{7,7\}: " > ~/`hg qtop`/.title
# copy to cr.openjdk.java.net
$ scp -rp /home/mike/`hg qtop`/ mduigou@cr.openjdk.java.net:
About

mduigou

Search

Archives
« April 2014
SunMonTueWedThuFriSat
  
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
   
       
Today