Patchwork D2547: purge: apply byteskwargs to opts, fixing all python3 issues here

login
register
mail settings
Submitter phabricator
Date March 2, 2018, 4:18 p.m.
Message ID <3d8730a4516e6633a76afa24387827d9@localhost.localdomain>
Download mbox | patch
Permalink /patch/28694/
State Not Applicable
Headers show

Comments

phabricator - March 2, 2018, 4:18 p.m.
This revision was automatically updated to reflect the committed changes.
Closed by commit rHG5a3f8da663e5: purge: apply byteskwargs to opts, fixing all python3 issues here (authored by durin42, committed by ).

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D2547?vs=6342&id=6360

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

AFFECTED FILES
  hgext/purge.py

CHANGE DETAILS




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

Patch

diff --git a/hgext/purge.py b/hgext/purge.py
--- a/hgext/purge.py
+++ b/hgext/purge.py
@@ -31,6 +31,7 @@ 
 from mercurial import (
     cmdutil,
     error,
+    pycompat,
     registrar,
     scmutil,
     util,
@@ -84,6 +85,7 @@ 
     list of files that this program would delete, use the --print
     option.
     '''
+    opts = pycompat.byteskwargs(opts)
     act = not opts.get('print')
     eol = '\n'
     if opts.get('print0'):