comparison hgsubversion/util.py @ 1376:717bf096197e stable

compat: fix some more use of repo.parents() fix repo.parents() to repo[None].parents() in some places along with changeset 4f8b1f202c90.
author Shun-ichi GOTO <shunichi.goto@gmail.com>
date Tue, 23 Feb 2016 11:16:39 +0900
parents 7475c42671b1
children 2f98d1e85c23
comparison
equal deleted inserted replaced
1371:34968c4a6a02 1376:717bf096197e
70 return wrapper 70 return wrapper
71 71
72 def parentrev(ui, repo, meta, hashes): 72 def parentrev(ui, repo, meta, hashes):
73 """Find the svn parent revision of the repo's dirstate. 73 """Find the svn parent revision of the repo's dirstate.
74 """ 74 """
75 workingctx = repo.parents()[0] 75 workingctx = repo[None].parents()[0]
76 outrev = outgoing_revisions(repo, hashes, workingctx.node()) 76 outrev = outgoing_revisions(repo, hashes, workingctx.node())
77 if outrev: 77 if outrev:
78 workingctx = repo[outrev[-1]].parents()[0] 78 workingctx = repo[outrev[-1]].parents()[0]
79 return workingctx 79 return workingctx
80 80