Browse files

checkout script for iterator over chapter branches

  • Loading branch information...
1 parent 127529c commit 93b727589dccc3ab068aebc6b7b2687c460ac2a6 @progrium committed Mar 9, 2012
Showing with 24 additions and 0 deletions.
  1. +24 −0 checkout.py
View
24 checkout.py
@@ -0,0 +1,24 @@
+#!/usr/bin/python
+
+import commands
+
+BRANCHES = [
+ 'chapter1',
+ 'chapter2a',
+ 'chapter2b',
+ 'chapter3a',
+ #'chapter3b',
+ 'chapter4a',
+ 'chapter4b',
+ 'chapter4c',
+ #'chapter5a',
+ #'chapter5b',
+ 'chapter6',
+ ]
+
+def checkout(branch):
+ return commands.getoutput('git checkout %s' % branch)
+
+for branch in BRANCHES:
+ output = checkout(branch)
+ raw_input('%-32s [continue] ' % output)

0 comments on commit 93b7275

Please sign in to comment.