class buildlist:
'''handle build of multiple directories'''
def __init__(self, tasklist, tasknames):
+ global tasks
self.tlist = []
self.tail_proc = None
if tasknames == ['pass']:
print("Rebasing on %s" % url)
run_cmd("git remote add -t master master %s" % url, show=True, dir=test_master)
run_cmd("git fetch master", show=True, dir=test_master)
- run_cmd("git rebase master/master", show=True, dir=test_master)
+ if options.fix_whitespace:
+ run_cmd("git rebase --whitespace=fix master/master", show=True, dir=test_master)
+ else:
+ run_cmd("git rebase master/master", show=True, dir=test_master)
def push_to(url):
print("Pushing to %s" % url)
default=False, action='store_true')
parser.add_option("", "--mark", help="add a Tested-By signoff before pushing",
default=False, action="store_true")
+parser.add_option("", "--fix-whitespace", help="fix whitespace on rebase",
+ default=False, action="store_true")
(options, args) = parser.parse_args()