Sorry, the current thg-crew won't let me send a patch series without this initial mail anymore ;-). Anyway, these two patches improve error messages and debug feedback in rebase, and makes it return early in a situation where it would abort with a confusing error and change the working dir parent before.