Mercurial > hgsubversion
diff 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 |
line wrap: on
line diff
--- a/hgsubversion/util.py +++ b/hgsubversion/util.py @@ -72,7 +72,7 @@ def gcdisable(orig): def parentrev(ui, repo, meta, hashes): """Find the svn parent revision of the repo's dirstate. """ - workingctx = repo.parents()[0] + workingctx = repo[None].parents()[0] outrev = outgoing_revisions(repo, hashes, workingctx.node()) if outrev: workingctx = repo[outrev[-1]].parents()[0]