next: factor out the logic to update to changeset in another function
This patch moves the logic to update to children changeset during `hg next` in a
separate function because we want to re-use the logic when we will prompt user
to choose a changeset in case of multiple childrens.
test-drop.t
test-inhibit.t
test-simple4server.t
tests/test-simple4server-bundle2.t