Show More
@@ -568,8 +568,9 def transplant(ui, repo, *revs, **opts): | |||||
568 | if not heads: |
|
568 | if not heads: | |
569 | heads = repo.heads() |
|
569 | heads = repo.heads() | |
570 | ancestors = [] |
|
570 | ancestors = [] | |
|
571 | ctx = repo[dest] | |||
571 | for head in heads: |
|
572 | for head in heads: | |
572 |
ancestors.append( |
|
573 | ancestors.append(ctx.ancestor(repo[head]).node()) | |
573 | for node in repo.changelog.nodesbetween(ancestors, heads)[0]: |
|
574 | for node in repo.changelog.nodesbetween(ancestors, heads)[0]: | |
574 | if match(node): |
|
575 | if match(node): | |
575 | yield node |
|
576 | yield node |
General Comments 0
You need to be logged in to leave comments.
Login now