split: use ctx.rev() instead of %d % ctx
And rename a variable for clarity while we're here.
This is part of our effort to wean off basectx.__int__.
Differential Revision: https://phab.mercurial-scm.org/D2430
--- a/hgext/split.py Sat Feb 24 11:14:28 2018 -0800
+++ b/hgext/split.py Sat Feb 24 11:20:24 2018 -0800
@@ -173,6 +173,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()))