fix init-branch tried to use changeset on the branch to be created as root changeset
added code from pullrequest 291