diff --git a/flake8diff/flake8.py b/flake8diff/flake8.py index be436b2..7d5a4f8 100644 --- a/flake8diff/flake8.py +++ b/flake8diff/flake8.py @@ -129,7 +129,7 @@ def get_vcs(self): try: vcs = vcs(self.commits, self.options) except VCSNotInstalledError: - logger.error('Seems like {0} is not installed'.format(vcs.name)) + logger.info('Seems like {0} is not installed'.format(vcs.name)) else: if vcs.is_used() and vcs.check(): return vcs diff --git a/flake8diff/vcs/git.py b/flake8diff/vcs/git.py index a3ec5aa..db3ff4a 100644 --- a/flake8diff/vcs/git.py +++ b/flake8diff/vcs/git.py @@ -20,7 +20,7 @@ def get_vcs(self): """ Get git binary executable path """ - return _execute('which git', strict=True).strip() + return _execute('which git', strict=True, log_errors=False).strip() def is_used(self): """ @@ -64,6 +64,7 @@ def changed_files(self): self.vcs, "diff", "--name-only", + "--diff-filter=ACMRTUXB", ] + self.commits) return filter(self.filter_file, diff --git a/flake8diff/vcs/hg.py b/flake8diff/vcs/hg.py index b7b04d8..180071f 100644 --- a/flake8diff/vcs/hg.py +++ b/flake8diff/vcs/hg.py @@ -20,7 +20,7 @@ def get_vcs(self): """ Get git binary executable path """ - vcs = _execute('which hg', strict=True).strip() + vcs = _execute('which hg', strict=True, log_errors=False).strip() return vcs def is_used(self):