changeset 36438:83bade6206d4

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
author Gregory Szorc <gregory.szorc@gmail.com>
date Sat, 24 Feb 2018 11:20:24 -0800
parents a75cab94e936
children 72da480db4a5
files hgext/split.py
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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()))