1377 blacklist dependencies

Git excludes dependencies from commit. 
Mercurial just shows a warning because it doesn't support excludes on commits. Just hgignore
Wouldn't it be easier to query this condition in one line? e.g. `if not any(...)` or just `found = any(...)`..