# HG changeset patch # User Gregory Szorc # Date 2018-02-24 19:20:24 # Node ID 83bade6206d4e8e9de792e4997b8ecd0954e0045 # Parent a75cab94e936c8beb6275f04a454bd3ae9349cf1 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 diff --git a/hgext/split.py b/hgext/split.py --- a/hgext/split.py +++ b/hgext/split.py @@ -173,6 +173,6 @@ def dosplit(ui, repo, tr, ctx, opts): 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()))