If multiple changesets are found in parent tree, the latest changeset will be selected.

Fix for #574. Copy of #575, but with different source branch.