@ -148,14 +148,20 @@ def rebase_branch(branch, parent, start_hash):
git . squash_current_branch ( merge_base = start_hash )
git . squash_current_branch ( merge_base = start_hash )
git . rebase ( parent , start_hash , branch )
git . rebase ( parent , start_hash , branch )
else :
else :
print " Failed! "
print
# rebase and leave in mid-rebase state.
# rebase and leave in mid-rebase state.
# This second rebase attempt should always fail in the same
# This second rebase attempt should always fail in the same
# way that the first one does. If it magically succeeds then
# way that the first one does. If it magically succeeds then
# something very strange has happened.
# something very strange has happened.
second_rebase_ret = git . rebase ( parent , start_hash , branch )
second_rebase_ret = git . rebase ( parent , start_hash , branch )
assert ( not second_rebase_ret . success )
if second_rebase_ret . success : # pragma: no cover
print " Failed! "
print " Second rebase succeeded unexpectedly! "
print
print " Please see: http://crbug.com/425696 "
print " First rebased failed with: "
print rebase_ret . stderr
else :
print " Here ' s what git-rebase (squashed) had to say: "
print " Here ' s what git-rebase (squashed) had to say: "
print
print
print squash_ret . stdout
print squash_ret . stdout