1v=4.1
2ov=4.0
3
4##* tag branchpoint
5##        hg tag $v.0-branched
6##        hg sign -k 'Xen tree' 4.1.0-branched
7
8* make branch in qemu-iwj.git
9        git-branch $v-testing master
10
11# make branches in xenbits.xen.org qemus
12        ssh xen@xenbits.xen.org
13	cd ~/git/qemu-xen.git
14	git branch staging-$v staging
15	git branch stable-$v master
16	cd ~/git/qemu-xen-traditional.git
17	git branch stable-$v master
18
19# make branch in libvirt
20        ssh xen@xenbits.xen.org
21        cd ~/git/libvirt.git/
22	git branch osstest/frozen/xen-$v-testing   xen-tested-master
23
24# make branches in xenbits.xen.org xen.git
25        ssh xen@xenbits.xen.org
26        cd ~/git/xen.git
27	git branch staging-$v staging
28	git branch stable-$v master
29
30# update xendocs@xenbits docs generator to generate new stable branch
31#  docs too. commit to git.
32* make 13:37 <ijc> http://xenbits.xen.org/docs/4.2-testing/ is now live true
33#14:17 <ijc> HOWTO: login to xenbits. become "xendocs" . cd cronjobs . edit
34#            xenbits-docs-all.sh in the obvious way. git commit
35	ssh root@xenbits.xen.org
36	su - xendocs
37	cd cronjobs
38	ed xenbits-docs-all.sh
39	/for branch
40	s/$/ 4.6-testing
41	# ^ OR SIMILAR
42	w
43	q
44        git add -p
45	git commit -m "Branch for $v"
46
47### * make symlink on mariner for qemu
48###        cd /var/www/git/
49###        ln -s /usr/groups/xencore/HG/qemu-xen-$v-testing.git .
50
51* make branches etc. in osstest
52        ssh osstest@osstest.test-lab
53	cd testing.git
54	OSSTEST_CONFIG=production-config ./mg-branch-setup xen-$v-testing bisect
55	OSSTEST_CONFIG=production-config ./mg-branch-setup qemu-upstream-$v-testing bisect
56
57# make branches etc. in Cambridge osstest
58        ssh osstest@osstest.xs.citrite.net
59	cd testing.git
60	OSSTEST_CONFIG=production-config-cambridge ./mg-branch-setup xen-$v-testing bisect
61	OSSTEST_CONFIG=production-config-cambridge ./mg-branch-setup qemu-upstream-$v-testing bisect
62
63* add branch to osstest
64        ie add both eg qemu-upstream-4.2-testing and xen-4.2-testing to BRANCHES in cr-for-branches
65
66* add to patchbot
67        on xenbits
68        cd ~/HG/patchbot/
69
70	cp xen--master.patchbot-reported-heads xen--stable-$v.patchbot-reported-heads
71	cp xen--staging.patchbot-reported-heads xen--staging-$v.patchbot-reported-heads
72        cp qemu-xen--master.patchbot-reported-heads  qemu-xen--stable-$v.patchbot-reported-heads
73        cp qemu-xen--staging.patchbot-reported-heads  qemu-xen--staging-$v.patchbot-reported-heads
74        cp qemu-xen-traditional--master.patchbot-reported-heads qemu-xen-traditional--stable-$v.patchbot-reported-heads
75
76        #emacs versions
77	perl -i~ -pe 'next unless m/\b\Q'$ov'\E\b/; $x=$_; $x=~ s/\b\Q'$ov'\E\b/'$v'/g; print $x;' versions
78        git diff
79	git add versions
80	git commit -m "Branch for $v"
81
82#* update xenbits web page
83        ssh root@xenbits.xen.org
84        cd /var/xenbits-www/html
85        emacs index.html
86	# - search for previous version number, and update in each place found
87	# - in general, drop one old release in favour of the new one
88
89Ensure references to qemu trees in xen.git's Config.mk are updated.
90Check this with
91        grep unstable Config.mk
92which should produce no output.  Replace as necessary.
93
94Update both new branches according to release-checklist.txt section re
95README etc.
96
97Update new stable tree's MAINTAINERS to contain correct info for this stable branch
98
99###* fix new trees' vcs descriptions
100#* make old trees' descriptions "historical"
101#	cd ~/git
102#	perl -i~ -pe "s/unstable/4.6-testing/" qemu-upstream-$v-testing.git/description
103
104