1377 - Rewrite SCM._ignore() as SCM._ensure_line_exists()
1377 - Use Python builtins to write HG ignore file
1377 - Move *.ignore() invocations from ensure_repo() to resolve_deps()
1377 - Undo whitespace modification without context