mirror of
https://github.com/facebook/sapling.git
synced 2024-10-07 15:27:13 +03:00
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:
parent
0ad0da0c93
commit
ae933b4f58
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user