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): ...@@ -254,9 +254,6 @@ class VCSHgTest(VCSGitTest):
def test_merge(self): def test_merge(self):
return return
def test_needs_commit(self):
return
def test_needs_merge(self): def test_needs_merge(self):
return return
......
...@@ -643,13 +643,11 @@ class HgRepository(Repository): ...@@ -643,13 +643,11 @@ class HgRepository(Repository):
def needs_commit(self, filename=None): def needs_commit(self, filename=None):
""" """
Checks whether repository needs commit. Checks whether repository needs commit.
TODO
""" """
if filename is None: if filename is None:
status = self.execute(['status', '--porcelain']) status = self.execute(['status'])
else: else:
status = self.execute(['status', '--porcelain', '--', filename]) status = self.execute(['status', '--', filename])
return status != '' return status != ''
def get_revision_info(self, revision): 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