changeset 20988 | 8c2f1e2a11ff |
parent 20442 | 8524cdf66a12 |
child 21411 | afff78be4361 |
--- a/hgext/transplant.py Mon Apr 07 23:17:51 2014 +0200 +++ b/hgext/transplant.py Mon Apr 07 23:17:51 2014 +0200 @@ -568,8 +568,9 @@ if not heads: heads = repo.heads() ancestors = [] + ctx = repo[dest] for head in heads: - ancestors.append(repo.changelog.ancestor(dest, head)) + ancestors.append(ctx.ancestor(repo[head]).node()) for node in repo.changelog.nodesbetween(ancestors, heads)[0]: if match(node): yield node