Mercurial > evolve
comparison hgext/evolve.py @ 1131:a44a26f8cc48
evolve: adapt to change in core rebase
Mercurial core changeset 63e889cc610d (And the ones around it) changed the way
graft and rebase work. We adapt to them.
author | Pierre-Yves David <pierre-yves.david@fb.com> |
---|---|
date | Thu, 16 Oct 2014 04:38:37 -0700 |
parents | da565c825429 |
children | 7a1784a1c642 |
comparison
equal
deleted
inserted
replaced
1130:be31c34bb341 | 1131:a44a26f8cc48 |
---|---|
804 | 804 |
805 tr = repo.transaction('relocate') | 805 tr = repo.transaction('relocate') |
806 try: | 806 try: |
807 try: | 807 try: |
808 r = rebase.rebasenode(repo, orig.node(), dest.node(), | 808 r = rebase.rebasenode(repo, orig.node(), dest.node(), |
809 {node.nullrev: node.nullrev}, False) | 809 {node.nullrev: node.nullrev}, False, |
810 orig.p1().node()) | |
810 if r[-1]: #some conflict | 811 if r[-1]: #some conflict |
811 raise util.Abort( | 812 raise util.Abort( |
812 'unresolved merge conflicts (see hg help resolve)') | 813 'unresolved merge conflicts (see hg help resolve)') |
813 cmdutil.duplicatecopies(repo, orig.node(), dest.node()) | |
814 nodenew = rebase.concludenode(repo, orig.node(), dest.node(), | 814 nodenew = rebase.concludenode(repo, orig.node(), dest.node(), |
815 node.nullid, commitmsg) | 815 node.nullid, commitmsg) |
816 except util.Abort, exc: | 816 except util.Abort, exc: |
817 repo.dirstate.beginparentchange() | |
818 repo.setparents(repo['.'].node(), nullid) | |
819 repo.dirstate.write() | |
820 # fix up dirstate for copies and renames | |
821 copies.duplicatecopies(repo, dest.rev(), orig.p1().rev()) | |
822 repo.dirstate.endparentchange() | |
817 class LocalMergeFailure(MergeFailure, exc.__class__): | 823 class LocalMergeFailure(MergeFailure, exc.__class__): |
818 pass | 824 pass |
819 exc.__class__ = LocalMergeFailure | 825 exc.__class__ = LocalMergeFailure |
820 raise | 826 raise |
821 oldbookmarks = repo.nodebookmarks(nodesrc) | 827 oldbookmarks = repo.nodebookmarks(nodesrc) |