[sr-dev] git:pd/outbound: core: updated use of get_branch() and next_branch() to cope with additional argument