D2423: templatekw: use ctx.rev() instead of casting context to int

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


This revision was automatically updated to reflect the committed changes.
Closed by commit rHGd65642840c6f: templatekw: use ctx.rev() instead of casting context to int (authored by indygreg, committed by ).

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D2423?vs=6055&id=6068

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

AFFECTED FILES
  mercurial/templatekw.py

CHANGE DETAILS

diff --git a/mercurial/templatekw.py b/mercurial/templatekw.py
--- a/mercurial/templatekw.py
+++ b/mercurial/templatekw.py
@@ -400,7 +400,7 @@
     """List of strings. The children of the changeset."""
     args = pycompat.byteskwargs(args)
     ctx = args['ctx']
-    childrevs = ['%d:%s' % (cctx, cctx) for cctx in ctx.children()]
+    childrevs = ['%d:%s' % (cctx.rev(), cctx) for cctx in ctx.children()]
     return showlist('children', childrevs, args, element='child')
 
 # Deprecated, but kept alive for help generation a purpose.



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


More information about the Mercurial-devel mailing list