repo: replace repo.parents() by repo[None].parents()

repo.parents() was removed in hg revision d5d613de0f44 (commands:
inline definition of localrepo.parents() and drop the method (API),
2015-11-11).
This commit is contained in:
Martin von Zweigbergk 2015-12-10 17:25:14 -08:00
parent 8f7ee3c1b1
commit 7251d9b51b

View File

@ -143,7 +143,7 @@ def wraprepo(repo):
if lookup:
files = []
parents = repo.parents()
parents = repo[None].parents()
for fname in lookup:
for ctx in parents:
if fname in ctx: