]> git.ozlabs.org Git - next-scripts/commitdiff
Just some checks on the interactions between trees.
authorStephen Rothwell <sfr@canb.auug.org.au>
Fri, 25 Apr 2008 09:46:43 +0000 (19:46 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Fri, 25 Apr 2008 09:46:43 +0000 (19:46 +1000)
check_trees [new file with mode: 0755]

diff --git a/check_trees b/check_trees
new file mode 100755 (executable)
index 0000000..92e13d1
--- /dev/null
@@ -0,0 +1,51 @@
+#!/bin/bash
+
+id=$(git rev-parse x86-fixes/for-linus)
+base=$(git merge-base x86-fixes/for-linus x86/for-akpm)
+[ "$id" = "$base" ] || {
+       echo x86-fixes/for-linus not base for x86/for-akpm 1>&2
+       exit 1
+}
+
+id=$(git rev-parse x86/for-akpm)
+base=$(git merge-base x86/for-akpm x86-latest/latest)
+[ "$id" = "$base" ] || {
+       echo x86/for-akpm not base for x86-latest/latest 1>&2
+       exit 1
+}
+
+id=$(git rev-parse sched-fixes/for-linus)
+base=$(git merge-base sched-fixes/for-linus sched/for-akpm)
+[ "$id" = "$base" ] || {
+       echo sched-fixes/for-linus not base for sched/for-akpm 1>&2
+       exit 1
+}
+
+id=$(git rev-parse sched/for-akpm)
+base=$(git merge-base sched/for-akpm sched-latest/latest)
+[ "$id" = "$base" ] || {
+       echo sched/for-akpm not base for sched-latest/latest 1>&2
+       exit 1
+}
+
+#id=$(git rev-parse x86-fixes/for-linus)
+#base=$(git merge-base x86-fixes/for-linus sched-fixes/for-linus)
+#[ "$id" = "$base" ] || {
+#      echo x86-fixes/for-linus not base for sched-fixes/for-linus 1>&2
+#      exit 1
+#}
+
+#id=$(git rev-parse x86/for-akpm)
+#base=$(git merge-base x86/for-akpm sched/for-akpm)
+#[ "$id" = "$base" ] || {
+#      echo x86/for-akpm not base for sched/for-akpm 1>&2
+#      exit 1
+#}
+
+id=$(git rev-parse x86-latest/latest)
+base=$(git merge-base x86-latest/latest sched-latest/latest)
+[ "$id" = "$base" ] || {
+       echo x86-latest/latest not base for sched-latest/latest 1>&2
+       exit 1
+}
+