| Index: git_rebase_update.py
|
| diff --git a/git_rebase_update.py b/git_rebase_update.py
|
| index aa69fe1fda7fe5498842874ca12e39cd75988081..3a366bb18de5b85c7b4e7c96ee50df5a745166e4 100755
|
| --- a/git_rebase_update.py
|
| +++ b/git_rebase_update.py
|
| @@ -130,7 +130,8 @@ def rebase_branch(branch, parent, start_hash):
|
| if git.hash_one(parent) != start_hash:
|
| # Try a plain rebase first
|
| print 'Rebasing:', branch
|
| - if not git.rebase(parent, start_hash, branch, abort=True).success:
|
| + rebase_ret = git.rebase(parent, start_hash, branch, abort=True)
|
| + if not rebase_ret.success:
|
| # TODO(iannucci): Find collapsible branches in a smarter way?
|
| print "Failed! Attempting to squash", branch, "...",
|
| squash_branch = branch+"_squash_attempt"
|
| @@ -152,10 +153,15 @@ def rebase_branch(branch, parent, start_hash):
|
| print "Failed!"
|
| print
|
| print "Here's what git-rebase had to say:"
|
| - print squash_ret.message
|
| print
|
| + print rebase_ret.stdout
|
| + print rebase_ret.stderr
|
| + print "Here's what git-rebase (squashed) had to say:"
|
| + print
|
| + print squash_ret.stdout
|
| + print squash_ret.stderr
|
| print textwrap.dedent(
|
| - """
|
| + """\
|
| Squashing failed. You probably have a real merge conflict.
|
|
|
| Your working copy is in mid-rebase. Either:
|
|
|