Skip to content

Commit

Permalink
Warn about accidentally deleted files in Mercurial repositories
Browse files Browse the repository at this point in the history
This makes it behave the same way as with Git, and makes tests failed
with FORCE_TEST_VCS=hg.

AFAICT the original bug (#32) never affected Mercurial repositories, so
the user-visible change is merely cosmetic.
  • Loading branch information
mgedmin committed Jan 30, 2015
1 parent cf0ca84 commit 03e660d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion check_manifest.py
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,7 @@ class Mercurial(VCS):
@staticmethod
def get_versioned_files():
"""List all files under Mercurial control in the current directory."""
output = run(['hg', 'status', '-ncam', '.'])
output = run(['hg', 'status', '-ncamd', '.'])
return add_directories(output.splitlines())


Expand Down
3 changes: 2 additions & 1 deletion tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -1192,7 +1192,8 @@ def test_bad_ideas(self):
sys.stderr.getvalue())

def test_missing_source_files(self):
# XXX: fails when self._vcs is BzrHelper() or HgHelper()
# https://github.com/mgedmin/check-manifest/issues/32
# XXX: fails when self._vcs is BzrHelper()
from check_manifest import check_manifest
self._create_repo_with_code()
self._add_to_vcs('missing.py')
Expand Down

0 comments on commit 03e660d

Please sign in to comment.