Add option to set mode for expanding branches in History Manager, fixes #600