D2430: split: use ctx.rev() instead of %d % ctx

indygreg (Gregory Szorc) phabricator at mercurial-scm.org
Sat Feb 24 20:53:52 EST 2018


This revision was automatically updated to reflect the committed changes.
Closed by commit rHG83bade6206d4: split: use ctx.rev() instead of %d % ctx (authored by indygreg, committed by ).

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D2430?vs=6062&id=6075

REVISION DETAIL
  https://phab.mercurial-scm.org/D2430

AFFECTED FILES
  hgext/split.py

CHANGE DETAILS

diff --git a/hgext/split.py b/hgext/split.py
--- a/hgext/split.py
+++ b/hgext/split.py
@@ -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()))



To: indygreg, #hg-reviewers, yuja
Cc: mercurial-devel


More information about the Mercurial-devel mailing list