]> git.ozlabs.org Git - next-scripts/blob - check_trees
merge_msg: allow for specifyin the tree on the command line
[next-scripts] / check_trees
1 #!/bin/bash
2
3 id=$(git rev-parse x86-fixes/for-linus)
4 base=$(git merge-base x86-fixes/for-linus x86/for-akpm)
5 [ "$id" = "$base" ] || {
6         echo x86-fixes/for-linus not base for x86/for-akpm 1>&2
7         exit 1
8 }
9
10 id=$(git rev-parse x86/for-akpm)
11 base=$(git merge-base x86/for-akpm x86-latest/latest)
12 [ "$id" = "$base" ] || {
13         echo x86/for-akpm not base for x86-latest/latest 1>&2
14         exit 1
15 }
16
17 id=$(git rev-parse sched-fixes/for-linus)
18 base=$(git merge-base sched-fixes/for-linus sched/for-akpm)
19 [ "$id" = "$base" ] || {
20         echo sched-fixes/for-linus not base for sched/for-akpm 1>&2
21         exit 1
22 }
23
24 id=$(git rev-parse sched/for-akpm)
25 base=$(git merge-base sched/for-akpm sched-latest/latest)
26 [ "$id" = "$base" ] || {
27         echo sched/for-akpm not base for sched-latest/latest 1>&2
28         exit 1
29 }
30
31 #id=$(git rev-parse x86-fixes/for-linus)
32 #base=$(git merge-base x86-fixes/for-linus sched-fixes/for-linus)
33 #[ "$id" = "$base" ] || {
34 #       echo x86-fixes/for-linus not base for sched-fixes/for-linus 1>&2
35 #       exit 1
36 #}
37
38 #id=$(git rev-parse x86/for-akpm)
39 #base=$(git merge-base x86/for-akpm sched/for-akpm)
40 #[ "$id" = "$base" ] || {
41 #       echo x86/for-akpm not base for sched/for-akpm 1>&2
42 #       exit 1
43 #}
44
45 id=$(git rev-parse x86-latest/latest)
46 base=$(git merge-base x86-latest/latest sched-latest/latest)
47 [ "$id" = "$base" ] || {
48         echo x86-latest/latest not base for sched-latest/latest 1>&2
49         exit 1
50 }
51