morestatus: fix deprecation warning

Summary: repo.parents() is deprecated, we should use repo[None].parents()

Test Plan: Test is still passing

Reviewers: cdelahousse, durham

Differential Revision: https://phabricator.fb.com/D2770918
This commit is contained in:
Laurent Charignon 2015-12-18 18:05:35 -08:00
parent 0ad0da0c93
commit ae933b4f58

View File

@ -88,7 +88,7 @@ def fileexistspredicate(filename):
return lambda repo: repo.vfs.exists(filename)
def mergepredicate(repo):
return len(repo.parents()) > 1
return len(repo[None].parents()) > 1
STATES = (
# (state, predicate to detect states, helpful message function)