Commit 22bce6b4 authored by Michal Čihař's avatar Michal Čihař

Implement needs_commit for Mercurial

Issue #511
Signed-off-by: default avatarMichal Čihař <michal@cihar.com>
parent fe36c5d1
......@@ -254,9 +254,6 @@ class VCSHgTest(VCSGitTest):
def test_merge(self):
return
def test_needs_commit(self):
return
def test_needs_merge(self):
return
......
......@@ -643,13 +643,11 @@ class HgRepository(Repository):
def needs_commit(self, filename=None):
"""
Checks whether repository needs commit.
TODO
"""
if filename is None:
status = self.execute(['status', '--porcelain'])
status = self.execute(['status'])
else:
status = self.execute(['status', '--porcelain', '--', filename])
status = self.execute(['status', '--', filename])
return status != ''
def get_revision_info(self, revision):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment