Show More
@@ -2626,6 +2626,9 b' def graft(' | |||
|
2626 | 2626 | if keepparent and len(parents) == 2 and base in parents: |
|
2627 | 2627 | parents.remove(base) |
|
2628 | 2628 | pother = parents[0].node() |
|
2629 | # Never set both parents equal to each other | |
|
2630 | if pother == pctx.node(): | |
|
2631 | pother = nullid | |
|
2629 | 2632 | |
|
2630 | 2633 | with repo.dirstate.parentchange(): |
|
2631 | 2634 | repo.setparents(pctx.node(), pother) |
General Comments 0
You need to be logged in to leave comments.
Login now