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

login
register
mail settings
Submitter phabricator
Date Nov. 4, 2017, 7:52 a.m.
Message ID <6c05761033164a96ba36bef34fa24671@localhost.localdomain>
Download mbox | patch
Permalink /patch/25395/
State Not Applicable
Headers show

Comments

phabricator - Nov. 4, 2017, 7:52 a.m.
This revision was automatically updated to reflect the committed changes.
Closed by commit rHGa56bf5591918: py3: handle keyword arguments in hgext/fetch.py (authored by pulkit, committed by ).

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D1302?vs=3239&id=3277

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

AFFECTED FILES
  hgext/fetch.py

CHANGE DETAILS




To: pulkit, #hg-reviewers, yuja
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)