diff --git a/hgext/split.py b/hgext/split.py --- a/hgext/split.py +++ b/hgext/split.py @@ -172,6 +172,6 @@ return committed[-1] -def dorebase(ui, repo, src, dest): +def dorebase(ui, repo, src, destctx): rebase.rebase(ui, repo, rev=[revsetlang.formatspec('%ld', src)], - dest=revsetlang.formatspec('%d', dest)) + dest=revsetlang.formatspec('%d', destctx.rev()))