bundle2: properly request phases during getbundle
getbundle was requesting the "phase" namespace instead of the "phases"
namespace, which led to the client still requesting the phases
separately after getbundle finished.
rebase: handle successor targets (
issue5198)
When a parent has a successor (indicated by revprecursor in state),
we need to use it.