Patchwork D1302: py3: handle keyword arguments in hgext/fetch.py

login
register
mail settings
Submitter phabricator
Date Nov. 2, 2017, 9:14 p.m.
Message ID <differential-rev-PHID-DREV-hbq674x665hcdtd62uys-req@phab.mercurial-scm.org>
Download mbox | patch
Permalink /patch/25367/
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/D1302

AFFECTED FILES
  hgext/fetch.py

CHANGE DETAILS




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

Patch

diff --git a/hgext/fetch.py b/hgext/fetch.py
--- a/hgext/fetch.py
+++ b/hgext/fetch.py
@@ -19,6 +19,7 @@ 
     exchange,
     hg,
     lock,
+    pycompat,
     registrar,
     util,
 )
@@ -60,6 +61,7 @@ 
     Returns 0 on success.
     '''
 
+    opts = pycompat.byteskwargs(opts)
     date = opts.get('date')
     if date:
         opts['date'] = util.parsedate(date)