search-commit.py: Check "from" commit existence in the history