Patchwork D1298: py3: handle keyword arguments in hgext/children.py

login
register
mail settings
Submitter phabricator
Date Nov. 2, 2017, 9:14 p.m.
Message ID <differential-rev-PHID-DREV-d3kujiphpvnnuqktjx7q-req@phab.mercurial-scm.org>
Download mbox | patch
Permalink /patch/25363/
State Superseded
Headers show

Comments

phabricator - Nov. 2, 2017, 9:14 p.m.
pulkit created this revision.
Herald added a subscriber: mercurial-devel.
Herald added a reviewer: hg-reviewers.

REPOSITORY
  rHG Mercurial

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

AFFECTED FILES
  hgext/children.py

CHANGE DETAILS




To: pulkit, #hg-reviewers
Cc: mercurial-devel

Patch

diff --git a/hgext/children.py b/hgext/children.py
--- a/hgext/children.py
+++ b/hgext/children.py
@@ -19,6 +19,7 @@ 
 from mercurial.i18n import _
 from mercurial import (
     cmdutil,
+    pycompat,
     registrar,
 )
 
@@ -55,6 +56,7 @@ 
     See :hg:`help log` and :hg:`help revsets.children`.
 
     """
+    opts = pycompat.byteskwargs(opts)
     rev = opts.get('rev')
     if file_:
         fctx = repo.filectx(file_, changeid=rev)