equal
deleted
inserted
replaced
168 |
168 |
169 if not committed: |
169 if not committed: |
170 raise error.Abort(_('cannot split an empty revision')) |
170 raise error.Abort(_('cannot split an empty revision')) |
171 |
171 |
172 scmutil.cleanupnodes(repo, {ctx.node(): [c.node() for c in committed]}, |
172 scmutil.cleanupnodes(repo, {ctx.node(): [c.node() for c in committed]}, |
173 operation='split') |
173 operation='split', fixphase=True) |
174 |
174 |
175 return committed[-1] |
175 return committed[-1] |
176 |
176 |
177 def dorebase(ui, repo, src, destctx): |
177 def dorebase(ui, repo, src, destctx): |
178 rebase.rebase(ui, repo, rev=[revsetlang.formatspec('%ld', src)], |
178 rebase.rebase(ui, repo, rev=[revsetlang.formatspec('%ld', src)], |