1377 - Blacklist dependencies from SCM tracking

Git excludes dependencies from commit. 
Mercurial just shows a warning because it doesn't support excludes on commits. Just hgignore
Please move this entire `for` block to the `ensure_repo()` function.